PDA

View Full Version : Something strange at Layout Browser



fabbydesign
8 May 2012, 3:56 AM
i have this code, that works ok:



Ext.Object.each(getAdminUsers(), function(name, example){ layoutExamples.push(example); }); treePanel.getSelectionModel().on('select', function(selModel, record) {

if i put this code:


Ext.Object.each(getAdminUsers(), function(name, example){ layoutExamples.push(example); });
after treePanel.getSelectionModel().on('select', function(selModel, record) {

i get the error: TypeError: Cannot read property 'xtype' of undefined [ ***/ext-all.js:15 (http://www.sencha.com/forum/view-source:http://www.mallorcainfo.de/media/ExtJS/ext-all.js)]
and i don't understand why?

scottmartin
15 May 2012, 11:53 AM
You code seems incomplete.. bad paste?
Please format code and try again.



treePanel.getSelectionModel().on('select', function(selModel, record) {

Regards,
Scott