Skip to content

Commit

Permalink
Fix Window.onClosing() not work in GWT 2.12
Browse files Browse the repository at this point in the history
When Window.onClosing(), if beforeCloseHandlersInitialized (not closeHandlersInitialized) is true, fire the ClosingEvent.

#10072
  • Loading branch information
InforBG authored Dec 23, 2024
1 parent a48140f commit a173198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/src/com/google/gwt/user/client/Window.java
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ static void onClosed() {
}

static String onClosing() {
if (closeHandlersInitialized) {
if (beforeCloseHandlersInitialized) {
Window.ClosingEvent event = new Window.ClosingEvent();
fireEvent(event);
return event.getMessage();
Expand Down

0 comments on commit a173198

Please sign in to comment.