minor tweak...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-11-07 06:36:41 +03:00
parent 622a27229c
commit 7d84bea5c4
2 changed files with 8 additions and 2 deletions

View File

@ -1138,13 +1138,19 @@ module.MetaActions = {
} }
// source tag actions... // source tag actions...
if(source_tag && attr instanceof Action){ if(source_tag && attr instanceof Action){
// existing tag...
if(that[k].source_tag == source_tag || that[k].func.source_tag == source_tag){
return
// new tag...
// XXX not sure if this is the right way to go... // XXX not sure if this is the right way to go...
if(that[k].source_tag || that[k].func.source_tag){ } else if(that[k].source_tag != source_tag || that[k].func.source_tag != source_tag){
console.warn('Aactions: about to overwrite source tag...\n' console.warn('Aactions: about to overwrite source tag...\n'
+' from: "'+(that[k].source_tag || that[k].func.source_tag)+'"\n' +' from: "'+(that[k].source_tag || that[k].func.source_tag)+'"\n'
+' to: "'+source_tag+'"\n' +' to: "'+source_tag+'"\n'
+' on:', that[k]) +' on:', that[k])
} }
that[k].func.source_tag = source_tag that[k].func.source_tag = source_tag
that[k].source_tag = source_tag that[k].source_tag = source_tag
} }

View File

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