PDA

View Full Version : 4.2 NodeInterface and default root node



sk@ia
30 Apr 2013, 2:24 PM
in 4.2 the removeAll function's implementation changed, it expects childNodes always is defined which is not true if when Ext.tree.Panel.initComponent try to create a default root node with a config {expaneded :true} and this config is passed to Ext.data.TreeStore.setRootNode

Ext.data.NodeInterface.decorate(model); root = Ext.ModelManager.create(root, model);now you have a root node object with undefined childNodes

slemmon
30 Apr 2013, 4:12 PM
I'm having a little trouble following the issue. You're saying that nodeInterface's removeAll is different in 4.2 from 4.1.3?

sk@ia
1 May 2013, 4:49 AM
I'm having a little trouble following the issue. You're saying that nodeInterface's removeAll is different in 4.2 from 4.1.3?

4.1.1
http://docs.sencha.com/extjs/4.1.1/source/NodeInterface.html#Ext-data-NodeInterface-method-removeAll