Hi,
I have a window that contains six buttons, each button has a Click event that fills a window named products, this six products are displayed depending on the button pressed. My problem is that when I return to the window of the six main buttons and click another button displayed last six products plus six new products. How I can avoid that? I used win.remove or win.close and keeps everything seen, window not is cleaned.
3 Answers
Accepted Answer
As long as you're closing the product window and opening a new one each time, then you shouldn't have any issues.
Are u using commonJS? that can help you. Sometimes when some object is linked in the global scope, the garbage collector cant take those resources and they stay alive... check memory leak docs and videos for that.
function removeChildrens(objeto) { for (i in objeto.children) { var child=objeto.children[0]; removeChildrens(child); objeto.remove(child); child=null; } }fix it
Your Answer
Think you can help? Login to answer this question!