diff --git a/AppKit/Platform/DOM/CPPlatformWindow+DOM.j b/AppKit/Platform/DOM/CPPlatformWindow+DOM.j index 20413329b..bac1994c4 100644 --- a/AppKit/Platform/DOM/CPPlatformWindow+DOM.j +++ b/AppKit/Platform/DOM/CPPlatformWindow+DOM.j @@ -483,7 +483,7 @@ _CPPlatformWindowWillCloseNotification = @"_CPPlatformWindowWillCloseNotificatio _DOMWindow.addEventListener("pagehide", function() { - _DOMWindow.removeEventListener("unload", arguments.callee, NO); + _DOMWindow.removeEventListener("pagehide", arguments.callee, NO); [self blurEvent:nil]; [self _notifyPlatformWindowWillClose];