Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : How to store DOM in a controller without create memory leak ?

$
0
0
I don't believe that really answers my question.

I have a main controller. It creates a bunch of sub controllers like so:
  1. this.someControl = new SomeControl( "elementID", { options} )
If the "elementID" DOM element is removed from the DOM, SomeControl's destroy function will be executed, but this.someControl still exists in the main controller. Is that an issue? Does it need to be set to null? The main controller might not even know someControl was destroyed.


Beside define "properly destroyed".



Viewing all articles
Browse latest Browse all 3491

Trending Articles