cache-plugin-debug.js revision 76ca635d61eb3f9fb7c9d788a44fa8b1690aa138
0N/AYUI.add('cache-plugin', function(Y) {
3586N/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 /**
1472N/A * The namespace for the plugin. This will be the property on the host which
1472N/A * references the plugin instance.
1472N/A *
0N/A * @property NS
0N/A * @type String
0N/A * @static
0N/A * @final
0N/A * @value "cache"
0N/A */
0N/A NS: "cache",
0N/A
0N/A /**
0N/A * Class name.
0N/A *
0N/A * @property NAME
0N/A * @type String
0N/A * @static
0N/A * @final
0N/A * @value "dataSourceCache"
0N/A */
0N/A NAME: "cachePlugin"
0N/A});
0N/A
0N/A
0N/AY.namespace("Plugin").Cache = CachePlugin;
0N/A
0N/A
0N/A}, '@VERSION@' ,{requires:['plugin','cache-base']});
0N/A