Parentless Visible View (or why the view I've removed keeps popping back up)

You must Login before you can answer or comment on any questions.

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?

— asked 2 years ago by Peter Wicks
1 Comment
  • Can you provide a more complete code sample as well as more info about your environment (ie: platform version, studio version, mobile sdk version, etc). I'm thinking a complete test case that can be run will help you get an answer to your question alot faster.

    — commented 2 years ago by Anthony Decena

Your Answer

Think you can help? Login to answer this question!