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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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