now merging configs via mix(..), not yet sure if this should be here or above...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-09-27 04:02:38 +03:00
parent 83a385ad0a
commit 3a3139cc6f
2 changed files with 10 additions and 1 deletions

View File

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

View File

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