minor bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-03-30 14:47:54 +03:00
parent 791ee3e8c4
commit 8fb878bcc1
2 changed files with 6 additions and 5 deletions

View File

@ -1045,10 +1045,11 @@ module.MetaActions = {
// XXX move to a better spot... // XXX move to a better spot...
alias: Action('alias', function(alias, target){ alias: Action('alias', function(alias, target){
// remove alias... // remove alias...
if((arguments.length == 2 if(arguments.length == 2
&& target === false || target === null) && (target === false || target === null)){
&& this[alias] instanceof Alias){ // delete only aliases...
delete this[alias] this[alias] instanceof Alias
&& (delete this[alias])
// set alias... // set alias...
} else { } else {

View File

@ -1,6 +1,6 @@
{ {
"name": "ig-actions", "name": "ig-actions",
"version": "3.19.2", "version": "3.19.3",
"description": "", "description": "",
"main": "actions.js", "main": "actions.js",
"scripts": { "scripts": {