mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 03:40:09 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
5e1b6d43ae
commit
fe2f6ec4d7
@ -743,9 +743,17 @@ module.MetaActions = {
|
|||||||
return this.mixout.call(to, this, all, descriptors, all_attr_types)
|
return this.mixout.call(to, this, all, descriptors, all_attr_types)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Create a child object...
|
||||||
|
//
|
||||||
|
// NOTE: this will create a .config in the instance that inherits from
|
||||||
|
// this.config...
|
||||||
|
// NOTE: this will not copy/clone any data.
|
||||||
|
//
|
||||||
// XXX is this correct???
|
// XXX is this correct???
|
||||||
clone: function(){
|
clone: function(){
|
||||||
return Object.create(this)
|
var o = Object.create(this)
|
||||||
|
o.config = Object.create(this.config)
|
||||||
|
return o
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -332,6 +332,14 @@ module.QueueActions = actions.Actions({
|
|||||||
delete this.__failed
|
delete this.__failed
|
||||||
delete this.__done
|
delete this.__done
|
||||||
}],
|
}],
|
||||||
|
|
||||||
|
|
||||||
|
// This will create a .config in instances...
|
||||||
|
__init__: function(){
|
||||||
|
if(this.__proto__.config && !Object.hasOwnProperty(this, 'config')){
|
||||||
|
this.config = Object.create(this.__proto__.config)
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user