mirror of
https://github.com/flynx/actions.js.git
synced 2025-10-29 10:20:09 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
622a27229c
commit
7d84bea5c4
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user