9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai /**
f955afb298f9d77dddcb6fa1c3f9fd84194461d4Satyen Desai * The base-pluginhost submodule adds Plugin support to Base, by augmenting Base with
f955afb298f9d77dddcb6fa1c3f9fd84194461d4Satyen Desai * Plugin.Host and setting up static (class level) Base.plug and Base.unplug methods.
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai *
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai * @module base
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai * @submodule base-pluginhost
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai * @for Base
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai */
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai var Base = Y.Base,
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai PluginHost = Y.Plugin.Host;
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai Y.mix(Base, PluginHost, false, null, 1);
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai /**
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai * Alias for <a href="Plugin.Host.html#method_Plugin.Host.plug">Plugin.Host.plug</a>. See aliased
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai * method for argument and return value details.
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai *
10d8bafc5c24f3a4285cf6060a1935ba5cfc4b85Luke Smith * @method plug
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai * @static
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai */
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai Base.plug = PluginHost.plug;
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai /**
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai * Alias for <a href="Plugin.Host.html#method_Plugin.Host.unplug">Plugin.Host.unplug</a>. See the
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai * aliased method for argument and return value details.
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai *
10d8bafc5c24f3a4285cf6060a1935ba5cfc4b85Luke Smith * @method unplug
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai * @static
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai */
9bd4bbae8fe38ed2b644bec08d4119e97434f96fSatyen Desai Base.unplug = PluginHost.unplug;