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); }, /**