No reason to double-bind the beforeunload event. Fixes #6113.
This commit is contained in:
parent
a49e6b6313
commit
36faab439a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue