diff options
author | jeresig <jeresig@gmail.com> | 2009-12-18 22:35:02 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2009-12-18 22:35:02 -0500 |
commit | 1feb92afb42d5213e2705290761779260bbd1fa4 (patch) | |
tree | 13252c72958aa5fc38a0621bbf159c70dbf25657 | |
parent | 3fd62eae9df3159fc238a515bb748140a942313d (diff) | |
download | jquery-1feb92afb42d5213e2705290761779260bbd1fa4.tar.gz jquery-1feb92afb42d5213e2705290761779260bbd1fa4.zip |
Make sure that we don't bind the onunload event in Opera.
-rw-r--r-- | src/event.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js index a2b512ae1..cf00e1863 100644 --- a/src/event.js +++ b/src/event.js @@ -882,7 +882,7 @@ jQuery.each( ("blur focus load resize scroll unload click dblclick " + // Window isn't included so as not to unbind existing unload events // More info: // - http://isaacschlueter.com/2006/10/msie-memory-leaks/ -if ( window.attachEvent ) { +if ( window.attachEvent && !window.addEventListener ) { window.attachEvent("onunload", function() { for ( var id in jQuery.cache ) { if ( jQuery.cache[ id ].handle ) { |