MDL-32843 import YUI 3.5.1
[moodle.git] / lib / yui / 3.5.1 / build / base-pluginhost / base-pluginhost-debug.js
blob31e5d6b00c6d6d498e6205ad31d23c9798a5c316
1 /*
2 YUI 3.5.1 (build 22)
3 Copyright 2012 Yahoo! Inc. All rights reserved.
4 Licensed under the BSD License.
5 http://yuilibrary.com/license/
6 */
7 YUI.add('base-pluginhost', function(Y) {
9     /**
10      * The base-pluginhost submodule adds Plugin support to Base, by augmenting Base with 
11      * Plugin.Host and setting up static (class level) Base.plug and Base.unplug methods.
12      *
13      * @module base
14      * @submodule base-pluginhost
15      * @for Base
16      */
18     var Base = Y.Base,
19         PluginHost = Y.Plugin.Host;
21     Y.mix(Base, PluginHost, false, null, 1);
23     /**
24      * Alias for <a href="Plugin.Host.html#method_Plugin.Host.plug">Plugin.Host.plug</a>. See aliased 
25      * method for argument and return value details.
26      *
27      * @method plug
28      * @static
29      */
30     Base.plug = PluginHost.plug;
32     /**
33      * Alias for <a href="Plugin.Host.html#method_Plugin.Host.unplug">Plugin.Host.unplug</a>. See the 
34      * aliased method for argument and return value details.
35      *
36      * @method unplug
37      * @static
38      */
39     Base.unplug = PluginHost.unplug;
42 }, '3.5.1' ,{requires:['base-base', 'pluginhost']});