-
4 Jan 2013 6:15 AM #1
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
-
4 Jan 2013 6:55 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
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.
-
5 Jan 2013 10:43 AM #3
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
Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.


Reply With Quote