]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - jssource/src_files/include/javascript/yui3/build/base/base-pluginhost.js
Release 6.5.0
[Github/sugarcrm.git] / jssource / src_files / include / javascript / yui3 / build / base / base-pluginhost.js
1 /*
2 Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3 Code licensed under the BSD License:
4 http://developer.yahoo.com/yui/license.html
5 version: 3.3.0
6 build: 3167
7 */
8 YUI.add('base-pluginhost', function(Y) {
9
10     /**
11      * The base-pluginhost submodule adds Plugin support to Base, by augmenting Base with 
12      * Plugin.Host and setting up static (class level) Base.plug and Base.unplug methods.
13      *
14      * @module base
15      * @submodule base-pluginhost
16      * @for Base
17      */
18
19     var Base = Y.Base,
20         PluginHost = Y.Plugin.Host;
21
22     Y.mix(Base, PluginHost, false, null, 1);
23
24     /**
25      * Alias for <a href="Plugin.Host.html#method_Plugin.Host.plug">Plugin.Host.plug</a>. See aliased 
26      * method for argument and return value details.
27      *
28      * @method Base.plug
29      * @static
30      */
31     Base.plug = PluginHost.plug;
32
33     /**
34      * Alias for <a href="Plugin.Host.html#method_Plugin.Host.unplug">Plugin.Host.unplug</a>. See the 
35      * aliased method for argument and return value details.
36      *
37      * @method Base.unplug
38      * @static
39      */
40     Base.unplug = PluginHost.unplug;
41
42
43 }, '3.3.0' ,{requires:['base-base', 'pluginhost']});