-
29 Mar 2012 5:20 AM #1
Ext.data.JsonP has no Context to the Request Object - missing 'Options'
Ext.data.JsonP has no Context to the Request Object - missing 'Options'
Using Ext.Ajax.request, I got the options object submitted with the callback for post processing.
On Ext.data.JsonP this behavior is missing.
To patch this, I recommend to give the whole request object (which is available in the callback context) to the callback methods (success, failure, callback) as a second parameter.
-
29 Mar 2012 7:41 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,652
- Vote Rating
- 14
Thank you for the report.
-
29 Mar 2012 8:48 AM #3Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Haarlem, Netherlands
- Posts
- 1,235
- Vote Rating
- 4
Good tip! I've added the request object as the last argument to each one of the callbacks.
Best,
Tommy
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-2627
in
2.0.


Reply With Quote
