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
    Gainesville, FL
    Posts
    36,790
    Vote Rating
    833
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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
    ________________
    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 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

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi