Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    11
    Vote Rating
    0
    navalsaini is on a distinguished road

      0  

    Default Initialized event not getting called

    Initialized event not getting called


    Hi Guys:

    I just migrated to sencha touch 2.1 and found a bug when using the shopping cart available in sencha market place.

    https://market.sencha.com/users/33/extensions/41 (in short the Cart does not display items).

    Debugging i found following difference between sencha touch 2.0.1.1 and the new sencha touch 2.1.0 :-

    1. In file controller/Panel.js (of above), Initialize events are not getting called :-

    control: {
    cartPanel: { // is an Ext.Panel
    initialize: 'initializeCartPanel',
    ...
    },

    archBtn: { // is an Ext.Button
    initialize: 'initializeArchBtn',
    ...
    }
    }

    These are getting called in the older version of sencha.

    Kindly let me know, if this is a bug or not. Maybe suggest a workaround or how to debug it further.

    Thanks,
    Naval

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


    Maybe your refs are wrong or something, this simple test case is working for me with ST 2.1.0:

    Code:
    Ext.define('Test.controller.Test', {
        extend : 'Ext.app.Controller',
    
        config : {
            control : {
                'panel' : {
                    initialize : 'onInit'
                }
            }
        },
    
        onInit : function() {
            console.log('initialize fired in controller');
        }
    });
    
    Ext.application({
        name : 'Test',
    
        controllers : ['Test'],
    
        launch : function () {
    
            Ext.Viewport.add({
                xtype : 'panel',
                html  : 'Hi'
            });
    
        }
    });
    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 User
    Join Date
    Jun 2012
    Posts
    11
    Vote Rating
    0
    navalsaini is on a distinguished road

      0  

    Default


    Hi Simeons

    The issue I reported was incorrect.

    I found bug at some other point and initialized was getting called.

    The performance improvements in 2.1 are certainly admirable.

    Thanks