diff --git a/actions.js b/actions.js index 44ca56a..5554b95 100755 --- a/actions.js +++ b/actions.js @@ -1045,10 +1045,11 @@ module.MetaActions = { // XXX move to a better spot... alias: Action('alias', function(alias, target){ // remove alias... - if((arguments.length == 2 - && target === false || target === null) - && this[alias] instanceof Alias){ - delete this[alias] + if(arguments.length == 2 + && (target === false || target === null)){ + // delete only aliases... + this[alias] instanceof Alias + && (delete this[alias]) // set alias... } else { diff --git a/package.json b/package.json index 26fdb43..26019db 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-actions", - "version": "3.19.2", + "version": "3.19.3", "description": "", "main": "actions.js", "scripts": {