diff -r 322d0feea350 -r 89ef5ed3c48b src/cm/media/js/lib/yui/yui_3.10.3/build/cache-plugin/cache-plugin.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui_3.10.3/build/cache-plugin/cache-plugin.js Tue Jul 16 14:29:46 2013 +0200 @@ -0,0 +1,60 @@ +/* +YUI 3.10.3 (build 2fb5187) +Copyright 2013 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ + +YUI.add('cache-plugin', function (Y, NAME) { + +/** + * Provides support to use Cache as a Plugin to a Base-based class. + * + * @module cache + * @submodule cache-plugin + */ + +/** + * Plugin.Cache adds pluginizability to Cache. + * @class Plugin.Cache + * @extends Cache + * @uses Plugin.Base + */ +function CachePlugin(config) { + var cache = config && config.cache ? config.cache : Y.Cache, + tmpclass = Y.Base.create("dataSourceCache", cache, [Y.Plugin.Base]), + tmpinstance = new tmpclass(config); + tmpclass.NS = "tmpClass"; + return tmpinstance; +} + +Y.mix(CachePlugin, { + /** + * The namespace for the plugin. This will be the property on the host which + * references the plugin instance. + * + * @property NS + * @type String + * @static + * @final + * @value "cache" + */ + NS: "cache", + + /** + * Class name. + * + * @property NAME + * @type String + * @static + * @final + * @value "dataSourceCache" + */ + NAME: "cachePlugin" +}); + + +Y.namespace("Plugin").Cache = CachePlugin; + + +}, '3.10.3', {"requires": ["plugin", "cache-base"]});