From b141fac0334e0e6870ceaf476abb2e4af337c729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 28 Jun 2012 19:08:46 +0200 Subject: [PATCH] Fixed onbeforeunload-event --- file/js/be.bastelstu.WCF.Chat.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/js/be.bastelstu.WCF.Chat.coffee b/file/js/be.bastelstu.WCF.Chat.coffee index 9c5f712..13c2b99 100644 --- a/file/js/be.bastelstu.WCF.Chat.coffee +++ b/file/js/be.bastelstu.WCF.Chat.coffee @@ -107,7 +107,7 @@ window.console ?= , @ # Unload the chat - window.onbeforeunload = $.proxy () -> + $(window).on 'beforeunload', $.proxy () -> @unload() return undefined , @