mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-25 14:57:38 +00:00
support arrays in config
This commit is contained in:
parent
6a8944736e
commit
5b0156fb81
@ -51,7 +51,7 @@ function core(loader) {
|
||||
loader.config = function(cfg) {
|
||||
for (var c in cfg) {
|
||||
var v = cfg[c];
|
||||
if (typeof v == 'object') {
|
||||
if (typeof v == 'object' && !(v instanceof Array)) {
|
||||
this[c] = this[c] || {};
|
||||
for (var p in v)
|
||||
this[c][p] = v[p];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user