apply ConfigMerge() if configDeepMerge: true

This commit is contained in:
Cédric
2020-09-21 23:21:43 +02:00
committed by GitHub
parent 1f473228ce
commit 97c2bab58a

View File

@@ -230,8 +230,8 @@ var Module = Class.extend({
* @param {object} config The combined module config. * @param {object} config The combined module config.
* @param {boolean} config Merge module config in deep. * @param {boolean} config Merge module config in deep.
*/ */
setConfig: function (config) { setConfig: function (config, deep) {
this.config = Object.assign({}, this.defaults, config); this.config= deep ? configMerge({}, this.defaults, config) : Object.assign({}, this.defaults, config);
}, },
/** /**