Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-4229 in Sprint 32.
  1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    17
    Vote Rating
    0
    Petitbomber is on a distinguished road

      0  

    Default Error with DelayedTask - Sencha Touch 2.2 RC

    Error with DelayedTask - Sencha Touch 2.2 RC


    Ext version tested:
    • Sencha Touch 2.2.0 RC
    Browser versions tested against:
    • Chrome
    Description:
    • Ext.util.DelayedTask - Uncaught TypeError: Cannot call method 'apply' of undefined
    Test Case:
    I use this code in a function
    Code:
    //create the delayed task instance with our callback
     var task = Ext.create('Ext.util.DelayedTask', function() {
              console.log('callback!');
          });
    task.delay(1500); //the callback function will now be called after 1500m
    and that error occurs:
    Uncaught TypeError: Cannot call method 'apply' of undefined (in DelayedTask.js line 104)



    Operating System:
    • WinXP Pro

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,640
    Vote Rating
    435
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,652
    Vote Rating
    14
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    This has been fixed for the next release.

    Sencha Inc

    Jamie Avins

    @jamieavins

  4. #4
    Sencha User
    Join Date
    Apr 2013
    Posts
    3
    Vote Rating
    0
    corban is on a distinguished road

      0  

    Default


    Error still exists in Sencha Touch 2.2 Release. I got the error:The error repeated every half second. I try the following sample code
    Code:
    var task2 = Ext.create('Ext.util.DelayedTask', {
                     fn: function() {
                        console.log('callback!');
                     }
                });
    task2.delay(500);
    I try to set
    Code:
    scope:this
    but this does not change anything. Can you give me a hint please.