PDA

View Full Version : [UNKNOWN][3.1 svn] HttpProxy request callback being passed incorrect arguments



kristoph
1 Jan 2010, 3:16 PM
The HttpProxy.request documentation says that the callback will be passed an array of Ext.data.Records. In fact, it's being passed Ext.data.Response.data (last line of doWrite).


o.request.callback.call(o.request.scope, res.data, res, res.success);

Also, please consider passing the whole response to that callback rather than data and success. If there is an error such that no records are returned there is no way to determine what the error message was.