diff --git a/actions.js b/actions.js index 599bd44..a3c622b 100755 --- a/actions.js +++ b/actions.js @@ -627,6 +627,8 @@ Action.prototype.chainCall = function(context, inner){ //--------------------------------------------------------------------- +// XXX alias parsing is dependant on the action set, move this functionality +// to the ActionSet.alias(..) method/action... // XXX handle alias args and pass them to the target... // XXX who's parsing and what syntax??? // - args syntax??? @@ -641,11 +643,14 @@ function Alias(alias, target){ return new Alias(alias, target) } - var meth = Action(alias, doc, null, + // XXX would be good to pre-parse the target... + var meth = Action(alias, + // XXX pre-parse the doc if possible... + null, null, { alias: target }, function(){ // parse the target... - var action = meth._parsed = meth._parsed || this.parseStringAction(target) + var action = this.parseStringAction(target) var args = action.arguments.slice() diff --git a/package.json b/package.json index f604043..3016a66 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-actions", - "version": "3.3.1", + "version": "3.3.2", "description": "", "main": "actions.js", "scripts": {