}
private final List<Message> messages = new ArrayList<Message>();
public WindowUnloadingController() {
JsBrowser.getWindow().setOnBeforeUnload(new BeforeUnloadEventListener() {
@Override
public String handleEvent(Event event) {
return handleBeforeUnloadEvent();
}
});