GWT Module cleanup

38 views
Skip to first unread message

Jonathan Gossage

unread,
Nov 18, 2011, 8:54:11 AM11/18/11
to Google Web Toolkit
GWT has the entry point EntryPoint to initialize a module but I cannot
find an analogous entry point for a module being unloaded. I want to
release some resources when a module is unloaded and I can`t find the
place to do it. Any ideas?

Thomas Broyer

unread,
Nov 18, 2011, 9:35:26 AM11/18/11
to google-we...@googlegroups.com
A module is never "unloaded"; except when the page itself is unloaded. So Window.addCloseHandler might be what you're looking for; but there's no need to "release resources" then, the whole "browser context" is unloaded (the page, its scripts, stylesheets, images, etc.)
Reply all
Reply to author
Forward
0 new messages