I have a button which removes all children from a view. This button appears to work as expected and when clicked the all children in the view are removed and disappear from the screen.
bv.clearBoard = function(){ while (bv.g.children !== null){ bv.g.remove(bv.g.children[0]); }; };However, the next time I touch anywhere in the view I just cleared the children reappear on screen, but parentless. All of the views that had been removed now return null for their 'parent' property. I am of course very confused by this... Any help on how to actually get rid of these children?
Your Answer
Think you can help? Login to answer this question!