No reason to double-bind the beforeunload event. Fixes #6113.
This commit is contained in:
parent
a49e6b6313
commit
36faab439a
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue