Ext.data.JsonRpcProxy=function(a){Ext.data.JsonRpcProxy.superclass.constructor.call(this);
this.rpc=a
};
Ext.extend(Ext.data.JsonRpcProxy,Ext.data.DataProxy,{load:function(e,b,f,c,a){if(this.fireEvent("beforeload",this,e)!==false){var d={params:e||{},request:{callback:f,scope:c,arg:a},reader:b,callback:this.loadResponse,scope:this};
this.rpc(function(g,h){d.callback.call(d.scope,d,g&&!h,g||h)
},d.params)
}else{f.call(c||this,null,a,false)
}},loadResponse:function(f,d,b){if(!d){this.fireEvent("loadexception",this,f,b);
f.request.callback.call(f.request.scope,null,f.request.arg,false);
return
}var a;
try{a=f.reader.readRecords(b)
}catch(c){this.fireEvent("loadexception",this,f,b,c);
f.request.callback.call(f.request.scope,null,f.request.arg,false);
return
}this.fireEvent("load",this,f,f.request.arg);
f.request.callback.call(f.request.scope,a,f.request.arg,true)
},update:function(a){},updateResponse:function(a){}});