support arrays in config

This commit is contained in:
guybedford 2014-07-29 18:10:26 -07:00
parent 6a8944736e
commit 5b0156fb81

View File

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