From 36faab439a1d3a5471847e952d0019e8e4e9b982 Mon Sep 17 00:00:00 2001 From: jeresig Date: Sat, 27 Feb 2010 10:03:43 -0500 Subject: [PATCH] No reason to double-bind the beforeunload event. Fixes #6113. --- src/event.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;