mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
/*
|
|
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
|
|
Code licensed under the BSD License:
|
|
http://developer.yahoo.com/yui/license.html
|
|
version: 3.1.1
|
|
build: 47
|
|
*/
|
|
YUI.add('base-pluginhost', function(Y) {
|
|
|
|
/**
|
|
* The base-pluginhost submodule adds Plugin support to Base, by augmenting Base with
|
|
* Plugin.Host and setting up static (class level) Base.plug and Base.unplug methods.
|
|
*
|
|
* @module base
|
|
* @submodule base-pluginhost
|
|
* @for Base
|
|
*/
|
|
|
|
var Base = Y.Base,
|
|
PluginHost = Y.Plugin.Host;
|
|
|
|
Y.mix(Base, PluginHost, false, null, 1);
|
|
|
|
/**
|
|
* Alias for <a href="Plugin.Host.html#method_Plugin.Host.plug">Plugin.Host.plug</a>. See aliased
|
|
* method for argument and return value details.
|
|
*
|
|
* @method Base.plug
|
|
* @static
|
|
*/
|
|
Base.plug = PluginHost.plug;
|
|
|
|
/**
|
|
* Alias for <a href="Plugin.Host.html#method_Plugin.Host.unplug">Plugin.Host.unplug</a>. See the
|
|
* aliased method for argument and return value details.
|
|
*
|
|
* @method Base.unplug
|
|
* @static
|
|
*/
|
|
Base.unplug = PluginHost.unplug;
|
|
|
|
|
|
}, '3.1.1' ,{requires:['base-base', 'pluginhost']});
|