Commit 36faab43 authored by jeresig's avatar jeresig

No reason to double-bind the beforeunload event. Fixes #6113.

parent a49e6b63
...@@ -520,9 +520,8 @@ jQuery.event = { ...@@ -520,9 +520,8 @@ jQuery.event = {
if ( this.setInterval ) { if ( this.setInterval ) {
this.onbeforeunload = eventHandle; this.onbeforeunload = eventHandle;
} }
return false;
}, },
teardown: function( namespaces, eventHandle ) { teardown: function( namespaces, eventHandle ) {
if ( this.onbeforeunload === eventHandle ) { if ( this.onbeforeunload === eventHandle ) {
this.onbeforeunload = null; this.onbeforeunload = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment