Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    4
    Vote Rating
    0
    platinas is on a distinguished road

      0  

    Default [FIXED][PR4] Ext.direct.RemotingProvider callback does not work

    [FIXED][PR4] Ext.direct.RemotingProvider callback does not work


    Uncaught ReferenceError: fn is not defined
    Code:
    /**
         * 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

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,124
    Vote Rating
    514
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    I was quite literally just fixing this as I saw your post. Weird!

    Thanks for the report.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    4
    Vote Rating
    0
    dmsilva is on a distinguished road

      0  

    Default


    Could you take a look on this thread?

    http://www.sencha.com/forum/showthre...error-callback

    Thanks,

    Daniel

Similar Threads

  1. Direct method callback scope
    By kodomo in forum Ext.Direct
    Replies: 2
    Last Post: 20 Oct 2010, 5:57 AM
  2. Replies: 1
    Last Post: 4 Jan 2010, 6:30 AM
  3. Direct Method not firing callback.
    By colin.jones in forum Ext.Direct
    Replies: 1
    Last Post: 2 Oct 2009, 3:08 AM

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar