diff --git a/actions.js b/actions.js index eb86804..4ef5cdb 100755 --- a/actions.js +++ b/actions.js @@ -1138,13 +1138,19 @@ module.MetaActions = { } // source tag actions... 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... - 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' +' from: "'+(that[k].source_tag || that[k].func.source_tag)+'"\n' +' to: "'+source_tag+'"\n' +' on:', that[k]) } + that[k].func.source_tag = source_tag that[k].source_tag = source_tag } diff --git a/package.json b/package.json index fcf57d6..0bb56e3 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-actions", - "version": "1.6.1", + "version": "1.6.2", "description": "", "main": "actions.js", "scripts": {