mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-10 18:52:19 +00:00
fix: replace legacy unload event listener cleanup with pagehide
This commit is contained in:
1 parent
e107e2d804
commit
16beb1a86c
1 file changed
+1
-1
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user