Skip to content
Permalink
Browse files

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

  • Loading branch information
jeresig committed Feb 27, 2010
1 parent a49e6b6 commit 36faab439a1d3a5471847e952d0019e8e4e9b982
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/event.js
@@ -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;

0 comments on commit 36faab4

Please sign in to comment.
You can’t perform that action at this time.