- Fix: Ensure copy preserves array values (e.g., dimensions in URL per #320)

master
Brett Zamir 2019-02-21 20:43:49 +08:00
parent d01abf19d2
commit d7b9cc6309
9 changed files with 9 additions and 9 deletions

2
dist/index-es.js vendored
View File

@ -29104,7 +29104,7 @@ editor.setConfig = function (opts, cfgCfg) {
} else if (cfgCfg.allowInitialUserOverride === true) {
extendOrAdd(defaultConfig, key, val);
} else if (defaultConfig[key] && _typeof(defaultConfig[key]) === 'object') {
curConfig[key] = {};
curConfig[key] = Array.isArray(defaultConfig[key]) ? [] : {};
$$b.extend(true, curConfig[key], val); // Merge properties recursively, e.g., on initFill, initStroke objects
} else {
curConfig[key] = val;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/index-umd.js vendored
View File

@ -29110,7 +29110,7 @@
} else if (cfgCfg.allowInitialUserOverride === true) {
extendOrAdd(defaultConfig, key, val);
} else if (defaultConfig[key] && _typeof(defaultConfig[key]) === 'object') {
curConfig[key] = {};
curConfig[key] = Array.isArray(defaultConfig[key]) ? [] : {};
$$b.extend(true, curConfig[key], val); // Merge properties recursively, e.g., on initFill, initStroke objects
} else {
curConfig[key] = val;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -541,7 +541,7 @@ editor.setConfig = function (opts, cfgCfg) {
} else if (cfgCfg.allowInitialUserOverride === true) {
extendOrAdd(defaultConfig, key, val);
} else if (defaultConfig[key] && typeof defaultConfig[key] === 'object') {
curConfig[key] = {};
curConfig[key] = Array.isArray(defaultConfig[key]) ? [] : {};
$.extend(true, curConfig[key], val); // Merge properties recursively, e.g., on initFill, initStroke objects
} else {
curConfig[key] = val;

View File

@ -29107,7 +29107,7 @@
} else if (cfgCfg.allowInitialUserOverride === true) {
extendOrAdd(defaultConfig, key, val);
} else if (defaultConfig[key] && _typeof(defaultConfig[key]) === 'object') {
curConfig[key] = {};
curConfig[key] = Array.isArray(defaultConfig[key]) ? [] : {};
$$b.extend(true, curConfig[key], val); // Merge properties recursively, e.g., on initFill, initStroke objects
} else {
curConfig[key] = val;

View File

@ -29107,7 +29107,7 @@
} else if (cfgCfg.allowInitialUserOverride === true) {
extendOrAdd(defaultConfig, key, val);
} else if (defaultConfig[key] && _typeof(defaultConfig[key]) === 'object') {
curConfig[key] = {};
curConfig[key] = Array.isArray(defaultConfig[key]) ? [] : {};
$$b.extend(true, curConfig[key], val); // Merge properties recursively, e.g., on initFill, initStroke objects
} else {
curConfig[key] = val;