2 YUI 3.13.0 (build 508226d)
3 Copyright 2013 Yahoo! Inc. All rights reserved.
4 Licensed under the BSD License.
5 http://yuilibrary.com/license/
8 YUI.add('cache-plugin', function (Y, NAME) {
11 * Provides support to use Cache as a Plugin to a Base-based class.
14 * @submodule cache-plugin
18 * Plugin.Cache adds pluginizability to Cache.
23 function CachePlugin(config) {
24 var cache = config && config.cache ? config.cache : Y.Cache,
25 tmpclass = Y.Base.create("dataSourceCache", cache, [Y.Plugin.Base]),
26 tmpinstance = new tmpclass(config);
27 tmpclass.NS = "tmpClass";
33 * The namespace for the plugin. This will be the property on the host which
34 * references the plugin instance.
51 * @value "dataSourceCache"
57 Y.namespace("Plugin").Cache = CachePlugin;
60 }, '3.13.0', {"requires": ["plugin", "cache-base"]});