From 97c2bab58a7d5f49bc4eda1595bbd4b525b01771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric?= Date: Mon, 21 Sep 2020 23:21:43 +0200 Subject: [PATCH] apply ConfigMerge() if configDeepMerge: true --- js/module.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/module.js b/js/module.js index 921c41f4..81a83343 100644 --- a/js/module.js +++ b/js/module.js @@ -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); }, /**