src/core/base/wnModule.js
function (modules)
		{
			for (m in modules)
			{
				_modulesConfig[m]=_.merge({}, modules[m]);
				if (this.hasModule(m))
					_.merge(_modulesConfig[m],this.getModulesConfig[m]);
			}
			return this;
		}
function (modules)
		{
			for (m in modules)
			{
				_modulesConfig[m]=_.merge({}, modules[m]);
				if (this.hasModule(m))
					_.merge(_modulesConfig[m],this.getModulesConfig[m]);
			}
			return this;
		}
function ( modules ) { for ( m in modules ) { _modulesConfig [ m ] = _ . merge ( { } , modules [ m ] ) ; if ( this . hasModule ( m ) ) _ . merge ( _modulesConfig [ m ] , this . getModulesConfig [ m ] ) ; } return this ; }
Merge new configuration into the module configuration

@param object $modules application modules(id=>module configuration or instances)
Defaults to true, meaning the previously registered module configuration of the same ID
will be merged with the new configuration. If false, the existing configuration will be replaced completely.
Merge new configuration into the module configuration