mercredi 26 mars 2014

About Ext.data.NodeInterface eachChild() method and removed nodes

Hello, i need an advise, please take a look at this fiddle:



http://ift.tt/1hrkh72







In short it does the following:



1. If a node is checked:

1.1. If the node has children, all of them are set to be cheked also recursively and if not have childs itself, they are removed



My purpose is:

When i click the chekbox of the parentnode (with text "homework"), the other two nodes to be checked and removed.



However, it happens on the first child only and after that console show an error.



I suppose this is due to the way eachChild() method works.



Any ideas how to overcome this?




Aucun commentaire:

Enregistrer un commentaire