Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    24
    Vote Rating
    0
    jjalonso is on a distinguished road

      0  

    Default on() delay property only work the first time.

    on() delay property only work the first time.


    I have two controller, A and B

    B have a listener like this

    Code:
            this.getApplication().on({
                showSheet: this.showSheet,
                scope: this,
                delay: 3000
            })

    When i fireevent from A "showSheet" the delay is apply fine, but the second time: delay is not applied.
    the execution is direct.



    Someone can check if its a bug?
    Thanks.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,582
    Vote Rating
    433
    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


    This test case is delaying 3 seconds using 2.0.1:

    Code:
    Ext.define('Test.controller.Main', {
        extend : 'Ext.app.Controller',
    
        init : function(app) {
            console.log('adding listener');
            app.on({
                showSheet : 'showSheet',
                scope     : this,
                delay     : 3000
            });
        },
    
        showSheet : function() {
            console.log('showSheet captured');
        }
    });
    
    Ext.application({
        name : 'Test',
    
        controllers : [
            'Main'
        ],
    
        launch : function() {
    
            console.log('firing event');
            this.fireEvent('showSheet', this);
    
        }
    });
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,651
    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


    Do you have a full test case which may show the issue?

    Sencha Inc

    Jamie Avins

    @jamieavins

  4. #4
    Sencha User
    Join Date
    Nov 2011
    Posts
    24
    Vote Rating
    0
    jjalonso is on a distinguished road

      0  

    Default


    Im using 2.0.0

    Now i talk about a issue in my app, i need extract it and setup a minimal test case.


    mitchellsimoens Try launch later other time the same event later delay succeed.

Tags for this Thread