PDA

View Full Version : removeAll on a treeStore



AssetWorks
14 Mar 2014, 10:16 AM
When I tried to do a remove all on a tree I get a Uncaught TypeError: Object [object Object] has no method 'indexOf'

I traced this down to the NodeInterface detroy method
It seems to be doing a recursive call to destroy all childrens childrens but when it gets to the leaf it cant resolve
finding the length of nodes which is the me.childNodes(). at that point

I created this fiddle and get the same response

https://fiddle.sencha.com/#fiddle/49g

so is this a bug or a "feature"

LesJ
14 Mar 2014, 11:18 AM
Looks like a bug. I see it in the nightly build as well.

See also this ticket (http://www.sencha.com/forum/showthread.php?266300)