dispose()
frees the object from memory, right? I do not know when it is necessary to use it. For example, I have a page, on this page there is listBox
com
visible = "false"
, in an event this listBox
becomes true
.
In another event the div
that contains this listBox
is hidden: display: none
. The% w / o% that was previously filled still occupies memory, right? It just does not appear on the screen because the listBox
has been hidden. When I hide div
would it be advisable to give div
to dispose()
since it is not being used (shown on the screen)? The listBox
will only appear again if the user clicks the button that triggers the event to fill it again.