Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

base-pluginhost.js 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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.4.0
  6. build: nightly
  7. */
  8. 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. */
  17. var Base = Y.Base,
  18. PluginHost = Y.Plugin.Host;
  19. Y.mix(Base, PluginHost, false, null, 1);
  20. /**
  21. * Alias for <a href="Plugin.Host.html#method_Plugin.Host.plug">Plugin.Host.plug</a>. See aliased
  22. * method for argument and return value details.
  23. *
  24. * @method plug
  25. * @static
  26. */
  27. Base.plug = PluginHost.plug;
  28. /**
  29. * Alias for <a href="Plugin.Host.html#method_Plugin.Host.unplug">Plugin.Host.unplug</a>. See the
  30. * aliased method for argument and return value details.
  31. *
  32. * @method unplug
  33. * @static
  34. */
  35. Base.unplug = PluginHost.unplug;
  36. }, '3.4.0' ,{requires:['base-base', 'pluginhost']});