提交 82030ae0 编写于 作者: M Martti Laine

Use deepMerge in deepMerge

上级 72c66dfd
......@@ -272,9 +272,9 @@ function deepMerge(/* obj1, obj2, obj3, ... */) {
var result = {};
function assignValue(val, key) {
if (typeof result[key] === 'object' && typeof val === 'object') {
result[key] = merge(result[key], val);
result[key] = deepMerge(result[key], val);
} else if (typeof val === 'object') {
result[key] = merge({}, val);
result[key] = deepMerge({}, val);
} else {
result[key] = val;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册