mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-18 14:53:14 +00:00
allow meta objects to be nulled
This commit is contained in:
parent
b4fd674107
commit
383fe14ee7
@ -101,7 +101,7 @@ function extendMeta(a, b, prepend) {
|
||||
a[p] = val;
|
||||
else if (val instanceof Array && a[p] instanceof Array)
|
||||
a[p] = [].concat(prepend ? val : a[p]).concat(prepend ? a[p] : val);
|
||||
else if (typeof val == 'object' && typeof a[p] == 'object')
|
||||
else if (typeof val == 'object' && val !== null && typeof a[p] == 'object')
|
||||
a[p] = extend(extend({}, a[p]), val, prepend);
|
||||
else if (!prepend)
|
||||
a[p] = val;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user