PDA

View Full Version : How to execute some code when a module is unloaded



pbt
23 Aug 2010, 5:20 AM
Hello,

Like the method onModuleLoad in EntryPoint, is there a onModuleUnload method or a way to execute some code when the client is unloading ?

Thanks.

pbt

sven
23 Aug 2010, 8:05 AM
You can do this with the Window class from the GWT jar.


com.google.gwt.user.client.Window.addCloseHandler(....);