datasource-cache-min.js revision 3ab1d84918e2599d8b7cae1fd6632c311c808774
YUI.add("datasource-cache",function(B){var A=function(){A.superclass.constructor.apply(this,arguments);};B.mix(A,{NS:"cache",NAME:"DataSourceCache",ATTRS:{}});B.extend(A,B.Cache,{initializer:function(C){this.doBefore("_defRequestFn",this._beforeDefRequestFn);this.doBefore("_defResponseFn",this._beforeDefResponseFn);},_beforeDefRequestFn:function(D){D._yuifacade=false;var C=(this.retrieve(D.request))||null;if(C&&C.response){this._owner.fire("response",B.mix({response:C.response},D));return new B.Do.Halt("DataSourceCache plugin halted _defRequestFn");}},_beforeDefResponseFn:function(C){this.add(C.request,C.response,(C.callback&&C.callback.argument));}});B.namespace("plugin");B.plugin.DataSourceCache=A;},"@VERSION@",{requires:["plugin","datasource-base","cache"]});