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

This commit is contained in:
jeresig 2010-02-27 10:03:43 -05:00
parent a49e6b6313
commit 36faab439a

View File

@ -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;