mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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 ) {
|
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…
Reference in New Issue
Block a user