aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-02-27 10:03:43 -0500
committerjeresig <jeresig@gmail.com>2010-02-27 10:03:43 -0500
commit36faab439a1d3a5471847e952d0019e8e4e9b982 (patch)
tree5470d5ca896c1a5593a678ead2a21d1952bec98d /src
parenta49e6b63131e292bc1c31ee98b300ba87ce99162 (diff)
downloadjquery-36faab439a1d3a5471847e952d0019e8e4e9b982.tar.gz
jquery-36faab439a1d3a5471847e952d0019e8e4e9b982.zip
No reason to double-bind the beforeunload event. Fixes #6113.
Diffstat (limited to 'src')
-rw-r--r--src/event.js3
1 files changed, 1 insertions, 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;