Hi,
Well, avoiding unnecessary object creation and deletion is frequently
best provided it doesn't complicate the code too much. But objects are
*constantly* created and destroyed in JavaScript (every time you call
a function, you're creating an object -- a very real one -- to hold
the parameters
Thank you T.J for the detailed answer, really helps.
In regards to what I'm trying to remove from memory I was referring to
the instance of the class. I can't imagine trying dynamically to get
rid of the class dynamically, when I could just remove it from my js
file if I don't need it.
This leads
Hi,
It's unclear whether you're talking about removing the
`namespace.Popup` *class* (well, constructor function -- JavaScript
doesn't have classes), or removing the `popup` *instance* (object)
that you've created for a specific popover.
The short version:
If you want to remove the instance you