disposing things that exist for the lifetime of the page

19 views
Skip to first unread message

John Munro

unread,
May 21, 2013, 5:53:37 PM5/21/13
to closure-lib...@googlegroups.com
Do I need to dispose of things that exist for the lifetime of the page?

For example - the page loads and I create a goog.ui.TableSorter.  It's going to be needed until the user navigates away from the page, at which point everything will be deleted anyway.  Do I still need to explicitly dispose of it?

Daniel Steigerwald

unread,
May 21, 2013, 8:38:12 PM5/21/13
to closure-lib...@googlegroups.com
No.


On Tue, May 21, 2013 at 11:53 PM, John Munro <ghos...@gmail.com> wrote:
Do I need to dispose of things that exist for the lifetime of the page?

For example - the page loads and I create a goog.ui.TableSorter.  It's going to be needed until the user navigates away from the page, at which point everything will be deleted anyway.  Do I still need to explicitly dispose of it?

--
 
---
You received this message because you are subscribed to the Google Groups "Closure Library Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-library-d...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages