} else {\r
this.onWrite(action, o, response, rs);\r
}\r
- }\r
+ };\r
},\r
\r
<div id="method-Ext.data.HttpProxy-onRead"></div>/**\r
o.request.callback.call(o.request.scope, null, o.request.arg, false);\r
return;\r
}\r
- if (res.success === false) {\r
- this.fireEvent('exception', this, 'remote', action, o, res, rs);\r
- } else {\r
+ if (res.success === true) {\r
this.fireEvent('write', this, action, res.data, res, rs, o.request.arg);\r
+ } else {\r
+ this.fireEvent('exception', this, 'remote', action, o, res, rs);\r
}\r
// TODO refactor onRead, onWrite to be more generalized now that we're dealing with Ext.data.Response instance\r
// the calls to request.callback(...) in each will have to be made similar.\r