Lines Matching refs:Plugin
33 * @class Plugin.Host
52 * a "cfg" property specifying the configuration for the Plugin.
61 plug: function(Plugin, config) {
64 if (L.isArray(Plugin)) {
65 for (i = 0, ln = Plugin.length; i < ln; i++) {
66 this.plug(Plugin[i]);
69 if (Plugin && !L.isFunction(Plugin)) {
70 config = Plugin.cfg;
71 Plugin = Plugin.fn;
74 // Plugin should be fn by now
75 if (Plugin && Plugin.NS) {
76 ns = Plugin.NS;
86 this[ns] = new Plugin(config);
87 this._plugins[ns] = Plugin;
90 else { Y.log("Attempt to plug in an invalid plugin. Host:" + this + ", Plugin:" + Plugin); }
141 * @return {Plugin} Returns a truthy value (the plugin instance) if present, or undefined if not.
175 Y.namespace("Plugin").Host = PluginHost;