From: jeresig Date: Sat, 27 Feb 2010 15:03:43 +0000 (-0500) Subject: No reason to double-bind the beforeunload event. Fixes #6113. X-Git-Tag: 1.4.3rc1~194 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=36faab439a1d3a5471847e952d0019e8e4e9b982;p=jquery.git No reason to double-bind the beforeunload event. Fixes #6113. --- diff --git a/src/event.js b/src/event.js index 42655c9bc..b55208066 100644 --- a/src/event.js +++ b/src/event.js @@ -520,9 +520,8 @@ jQuery.event = { if ( this.setInterval ) { this.onbeforeunload = eventHandle; } - - return false; }, + teardown: function( namespaces, eventHandle ) { if ( this.onbeforeunload === eventHandle ) { this.onbeforeunload = null;