diff --git a/actions.js b/actions.js index d966eee..870b2be 100755 --- a/actions.js +++ b/actions.js @@ -1311,6 +1311,15 @@ function(){ args.forEach(function(p){ res = Object.create(mixin.call(res, p)) + + // merge config... + if(p.config){ + var config = res.config = res.config || Object.create({}) + + Object.keys(p.config).forEach(function(k){ + res.config.__proto__[k] = JSON.parse(JSON.stringify(p.config[k])) + }) + } }) return res diff --git a/package.json b/package.json index 9113d9e..fbda568 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-actions", - "version": "1.2.1", + "version": "1.3.0", "description": "", "main": "actions.js", "scripts": {