diff --git a/actions.js b/actions.js index 870b2be..3bbb79d 100755 --- a/actions.js +++ b/actions.js @@ -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 .config.__proto__ = .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){ diff --git a/package.json b/package.json index fbda568..0b1d7e6 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-actions", - "version": "1.3.0", + "version": "1.4.0", "description": "", "main": "actions.js", "scripts": {