diff --git a/AppKit/Platform/DOM/CPPlatformWindow+DOM.j b/AppKit/Platform/DOM/CPPlatformWindow+DOM.j index 961fb4787..20413329b 100644 --- a/AppKit/Platform/DOM/CPPlatformWindow+DOM.j +++ b/AppKit/Platform/DOM/CPPlatformWindow+DOM.j @@ -481,7 +481,7 @@ _CPPlatformWindowWillCloseNotification = @"_CPPlatformWindowWillCloseNotificatio _DOMWindow.addEventListener("blur", onBlurEventCallback, NO); _DOMWindow.addEventListener("focus", onFocusEventCallback, NO); - _DOMWindow.addEventListener("unload", function() + _DOMWindow.addEventListener("pagehide", function() { _DOMWindow.removeEventListener("unload", arguments.callee, NO);