Removed all window.unload event handlers. This kind of fixes #200

This commit is contained in:
Peter 'Pita' Martischka 2012-02-27 17:33:27 +01:00
parent 0c77052698
commit d00be5b817
3 changed files with 14 additions and 22 deletions

View file

@ -84,13 +84,6 @@ function getCollabClient(ace2editor, serverVars, initialUserInfo, options, _pad)
{}
};
$(window).bind("unload", function()
{
if (getSocket())
{
setChannelState("DISCONNECTED", "unload");
}
});
if ($.browser.mozilla)
{
// Prevent "escape" from taking effect and canceling a comet connection;