PDA

View Full Version : TreeStore: Store defined with no model. You may have mistyped the model name.



gnube
2 Nov 2011, 6:00 PM
I just switched to 4.0.7-gpl from 4.02a an noticed new warnings being generated on creation of my TreePanels.

"Store defined with no model. You may have mistyped the model name."

These seem to be fine to ignore but though I would ask if anyone had any problems with ignoring them. The ones I am seeing are in relation to sencha created NodeStore in Ext.tree.View/View.js around line 58:


me.store = Ext.create('Ext.data.NodeStore', {
recursive: true,
rootVisible: me.rootVisible,
listeners: {
beforeexpand: me.onBeforeExpand,
expand: me.onExpand,
beforecollapse: me.onBeforeCollapse,
collapse: me.onCollapse,
model: me.store.model,
scope: me
}
});

skirtle
2 Nov 2011, 6:11 PM
If your code is working then I wouldn't worry about that warning. You'll notice the API docs app shows that warning too.

tangix
1 Dec 2011, 3:14 AM
Just want to share my 2h debugging experience in IE9 related to this...
I found that my ExtJS app did not launch in IE9. What to do? Well, opening the Developer Tools in IE9 and viola - the app works. Closing the Developer Tools and all is well UNTIL IE9 is restarted - same problem...

Found out that the warn from the TreeStore about the model seems to be avoiding the
if (Ext.isDefined(Ext.global.console)) in AbstractStore.js and displays the following error in IE9 (with script debugging enabled):

Line: 282
Error: Object doesn't support property or method 'warn'

/Mattias

mike young
2 Dec 2011, 2:03 AM
Would like to know which exact version of IE 9.