PDA

View Full Version : [FIXED][PR4] Ext.direct.RemotingProvider callback does not work



platinas
17 Mar 2011, 3:59 AM
Uncaught ReferenceError: fn is not defined

/**
* Run any callbacks related to the transaction.
* @private
* @param {Ext.direct.Transaction} transaction The transaction
* @param {Ext.direct.Event} event The event
*/
runCallback: function(transaction, event){
var funcName = event.status ? 'success' : 'failure',
callback,
result;

if (transaction && transaction.callback) {
callback = transaction.callback;
result = Ext.isDefined(event.result) ? event.result : event.data;

if (Ext.isFunction(callback)) {
callback(result, event);
} else {
Ext.callback(callback[fn], callback.scope, [result, e]);
Ext.callback(callback.callback, callback.scope, [result, e]);
}
}
}
so funcName is used as the variable for function name but fn is used later

evant
17 Mar 2011, 4:03 AM
I was quite literally just fixing this as I saw your post. Weird!

Thanks for the report.

dmsilva
25 Sep 2012, 11:03 PM
Could you take a look on this thread?

http://www.sencha.com/forum/showthread.php?235898-Possible-bug-in-Ext.direct.RemotingProvider-error-callback

Thanks,

Daniel