PluginHostConfig.js revision 6c96442b6a372e466ea59417a4e147d4fbd4a006
4458N/A * Adds pluginhost constructor configuration and static configuration support 4458N/A * @submodule pluginhost-config 4458N/A * Constructor and static configuration support for plugins 4458N/A * Registers plugins to be instantiated at the class level (plugins 4458N/A * which should be plugged into every instance of the class by default). 5403N/A * @param {Function} hostClass The host class on which to register the plugins 5403N/A * @param {Function | Array} plugin Either the plugin class, an array of plugin classes or an array of objects (with fn and cfg properties defined) 5403N/A * @param {Object} config (Optional) If plugin is the plugin class, the configuration for the plugin 5445N/A // Cannot plug into Base, since Plugins derive from Base [ will cause infinite recurrsion ] 4458N/A * Unregisters any class level plugins which have been registered by the host class, or any 4458N/A * other class in the hierarchy. 4458N/A * @method Plugin.Host.unplug 4458N/A * @param {Function} hostClass The host class from which to unregister the plugins 4458N/A * @param {Function | Array} plugin The plugin class, or an array of plugin classes