pass the requestOptions to the success and failure callbacks

This commit is contained in:
Damien Churchill 2009-04-27 17:21:35 +00:00
parent c267c36b7b
commit 370b4ae805
1 changed files with 4 additions and 4 deletions

View File

@ -106,16 +106,16 @@ Ext.namespace('Ext.ux.util');
if (responseObj.error) {
if (Ext.type(options.failure) != 'function') return;
if (options.scope) {
options.failure.call(options.scope, responseObj.error, responseObj, response);
options.failure.call(options.scope, responseObj.error, responseObj, response, requestOptions);
} else {
options.failure(responseObj.error, responseObj, response);
options.failure(responseObj.error, responseObj, response, requestOptions);
}
} else {
if (Ext.type(options.success) != 'function') return;
if (options.scope) {
options.success.call(options.scope, responseObj.result, responseObj, response);
options.success.call(options.scope, responseObj.result, responseObj, response, requestOptions);
} else {
options.success(responseObj.result, responseObj, response);
options.success(responseObj.result, responseObj, response, requestOptions);
}
}
},