From 890e5f58739217bd85e945c2f332e931b923742c Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 3 Aug 2017 21:44:16 +0300 Subject: [PATCH] minor fixes... Signed-off-by: Alex A. Naanou --- actions.js | 9 +++++++-- package.json | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) 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": {