cache-plugin-debug.js revision dd72421503ba2f80d5e64ad5d2ba2449f14f8bb8
0N/AYUI.add('cache-plugin', function(Y) {
0N/A
0N/A/**
0N/A * Plugin.Cache adds pluginizability to Cache.
0N/A * @class Plugin.Cache
0N/A * @extends Cache
0N/A * @uses Plugin.Base
0N/A */
0N/Afunction CachePlugin(config) {
0N/A var cache = config && config.cache ? config.cache : Y.Cache,
0N/A tmpclass = Y.Base.create("dataSourceCache", cache, [Y.Plugin.Base]),
0N/A tmpinstance = new tmpclass(config);
0N/A tmpclass.NS = "tmpClass";
0N/A return tmpinstance;
0N/A}
0N/A
0N/AY.mix(CachePlugin, {
0N/A /**
0N/A * The namespace for the plugin. This will be the property on the host which
0N/A * references the plugin instance.
1054N/A *
0N/A * @property NS
0N/A * @type String
65N/A * @static
125N/A * @final
125N/A * @value "cache"
58N/A */
77N/A NS: "cache",
125N/A
125N/A /**
125N/A * Class name.
1016N/A *
125N/A * @property NAME
261N/A * @type String
261N/A * @static
583N/A * @final
312N/A * @value "dataSourceCache"
312N/A */
467N/A NAME: "cachePlugin"
428N/A});
126N/A
58N/A
394N/AY.namespace("Plugin").Cache = CachePlugin;
8N/A
77N/A
0N/A
0N/A}, '@VERSION@' ,{requires:['cache-base']});
0N/A