X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/docs/source/HttpProxy.html diff --git a/docs/source/HttpProxy.html b/docs/source/HttpProxy.html index 5ae9fa82..8b0624c9 100644 --- a/docs/source/HttpProxy.html +++ b/docs/source/HttpProxy.html @@ -173,7 +173,7 @@ Ext.extend(Ext.data.HttpProxy, Ext.data.DataProxy, { } else { this.onWrite(action, o, response, rs); } - } + }; },
/** @@ -235,10 +235,10 @@ Ext.extend(Ext.data.HttpProxy, Ext.data.DataProxy, { o.request.callback.call(o.request.scope, null, o.request.arg, false); return; } - if (res.success === false) { - this.fireEvent('exception', this, 'remote', action, o, res, rs); - } else { + if (res.success === true) { this.fireEvent('write', this, action, res.data, res, rs, o.request.arg); + } else { + this.fireEvent('exception', this, 'remote', action, o, res, rs); } // TODO refactor onRead, onWrite to be more generalized now that we're dealing with Ext.data.Response instance // the calls to request.callback(...) in each will have to be made similar.