#81 jquery modify changes
parent
85f2e363df
commit
5384fb6804
|
@ -1,7 +1,6 @@
|
|||
/* globals $ */
|
||||
|
||||
// eslint-disable-next-line node/no-unpublished-import
|
||||
import deparam from 'deparam';
|
||||
import {mergeDeep} from './components/jgraduate/Util.js';
|
||||
|
||||
/**
|
||||
* Escapes special characters in a regular expression.
|
||||
|
@ -398,7 +397,8 @@ export default class ConfigObj {
|
|||
*/
|
||||
const extendOrAdd = (cfgObj, key, val) => {
|
||||
if (cfgObj[key] && typeof cfgObj[key] === 'object') {
|
||||
$.extend(true, cfgObj[key], val);
|
||||
// $.extend(true, cfgObj[key], val);
|
||||
cfgObj[key] = mergeDeep(cfgObj[key], val);
|
||||
} else {
|
||||
cfgObj[key] = val;
|
||||
}
|
||||
|
@ -446,7 +446,8 @@ export default class ConfigObj {
|
|||
extendOrAdd(this.defaultConfig, key, val);
|
||||
} else if (this.defaultConfig[key] && typeof this.defaultConfig[key] === 'object') {
|
||||
this.curConfig[key] = Array.isArray(this.defaultConfig[key]) ? [] : {};
|
||||
$.extend(true, this.curConfig[key], val); // Merge properties recursively, e.g., on initFill, initStroke objects
|
||||
this.curConfig[key] = mergeDeep(this.curConfig[key], val);
|
||||
// $.extend(true, this.curConfig[key], val); // Merge properties recursively, e.g., on initFill, initStroke objects
|
||||
} else {
|
||||
this.curConfig[key] = val;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue