Lines Matching defs:plugin
11 * plugin configurations passed the constructor, through the config object.
68 * @param {Function | Array} plugin Either the plugin class, an array of plugin classes or an array of objects (with fn and cfg properties defined)
69 * @param {Object} config (Optional) If plugin is the plugin class, the configuration for the plugin
72 PluginHost.plug = function(hostClass, plugin, config) {
79 if (!L.isArray(plugin)) {
81 plugin = {fn:plugin, cfg:config};
83 plugin = [plugin];
86 for (i = 0, l = plugin.length; i < l;i++) {
87 p = plugin[i];
102 * @param {Function | Array} plugin The plugin class, or an array of plugin classes
105 PluginHost.unplug = function(hostClass, plugin) {
111 if (!L.isArray(plugin)) {
112 plugin = [plugin];
115 for (i = 0, l = plugin.length; i < l; i++) {
116 p = plugin[i];