From 716e33ab8d4c10d6ef5a662c0d1fecefcf79a2f1 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 2 Jul 2017 19:13:22 +0300 Subject: [PATCH] mixout now supports tags... Signed-off-by: Alex A. Naanou --- actions.js | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/actions.js b/actions.js index e4791f7..658ccff 100755 --- a/actions.js +++ b/actions.js @@ -1166,7 +1166,8 @@ module.MetaActions = { while(proto != null){ // we have a hit... if(proto.hasOwnProperty('__mixin_source') - && proto.__mixin_source === from){ + && (proto.__mixin_source === from + || proto.__mixin_tag == from)){ return pre ? cur : proto } // go to next item in chain... @@ -1265,7 +1266,8 @@ module.MetaActions = { // mark the mixin for simpler removal... proto.__mixin_source = from - if(options.source_tag){ + // add source tag to proto... + if(options && options.source_tag){ proto.__mixin_tag = options.source_tag } diff --git a/package.json b/package.json index 2acb1c0..c8b6cab 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-actions", - "version": "3.2.1", + "version": "3.2.2", "description": "", "main": "actions.js", "scripts": {