datasource-xhr-min.js revision 2d05ae30a932507d8c42cef6b78b46e0876a5669
YUI.add("datasource-xhr",function(B){var A=function(){A.superclass.constructor.apply(this,arguments);};B.mix(A,{NAME:"DataSource.XHR",ATTRS:{io:{value:B.io}}});B.extend(A,B.DataSource.Local,{initializer:function(){this._queue={interval:null,conn:null,requests:[]};},_queue:null,_defRequestFn:function(E,F){var D=this.get("source"),C={on:{success:function(I,G,H){this.fire("data",null,B.mix(H,{data:G}));},failure:function(I,G,H){H.error=true;this.fire("error",null,B.mix(H,{data:G}));this.fire("data",null,B.mix(H,{data:G}));}},context:this,arguments:{tId:F.tId,request:F.request,callback:F.callback}};this.get("io")(D,C);return F.tId;}});B.DataSource.XHR=A;},"@VERSION@",{requires:["datasource-base"]});