Skip to content

Commit 39e67c5

Browse files
authored
Fix Window.onClosing() not work in GWT 2.12 (#10074)
When Window.onClosing(), if beforeCloseHandlersInitialized (not closeHandlersInitialized) is true, fire the ClosingEvent. Fixes #10072.
1 parent a48140f commit 39e67c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

user/src/com/google/gwt/user/client/Window.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ static void onClosed() {
853853
}
854854

855855
static String onClosing() {
856-
if (closeHandlersInitialized) {
856+
if (beforeCloseHandlersInitialized) {
857857
Window.ClosingEvent event = new Window.ClosingEvent();
858858
fireEvent(event);
859859
return event.getMessage();

0 commit comments

Comments
 (0)