mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-29 02:10:09 +00:00
now mix can inherit the object from MetaActions...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3a3139cc6f
commit
a915588e16
@ -1217,7 +1217,7 @@ object.makeConstructor('ActionSet', MetaActions)
|
||||
//
|
||||
// This will pre-process an object to setup the action mechanics.
|
||||
//
|
||||
// If the 'this and prototype both contain a .config attribute then this
|
||||
// If the 'this' and prototype both contain a .config attribute then this
|
||||
// will make set <actions>.config.__proto__ = <prototype>.config
|
||||
//
|
||||
//
|
||||
@ -1307,6 +1307,13 @@ function(){
|
||||
var args = [].slice.call(arguments)
|
||||
var res = {}
|
||||
|
||||
// special case: if MetaActions is in the args then inherit the root
|
||||
// object from it...
|
||||
if(args.indexOf(MetaActions) >= 0){
|
||||
args.splice(args.indexOf(MetaActions), 1)
|
||||
res.__proto__ = MetaActions
|
||||
}
|
||||
|
||||
var mixin = MetaActions.inlineMixin
|
||||
|
||||
args.forEach(function(p){
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-actions",
|
||||
"version": "1.3.0",
|
||||
"version": "1.4.0",
|
||||
"description": "",
|
||||
"main": "actions.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user