mixout now supports tags...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-07-02 19:13:22 +03:00
parent 8b7f09f7d2
commit 716e33ab8d
2 changed files with 5 additions and 3 deletions

View File

@ -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
}

View File

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