Make sure that we don't bind the onunload event in Opera.
This commit is contained in:
parent
3fd62eae9d
commit
1feb92afb4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
// Window isn't included so as not to unbind existing unload events
|
||||||
// More info:
|
// More info:
|
||||||
// - http://isaacschlueter.com/2006/10/msie-memory-leaks/
|
// - http://isaacschlueter.com/2006/10/msie-memory-leaks/
|
||||||
if ( window.attachEvent ) {
|
if ( window.attachEvent && !window.addEventListener ) {
|
||||||
window.attachEvent("onunload", function() {
|
window.attachEvent("onunload", function() {
|
||||||
for ( var id in jQuery.cache ) {
|
for ( var id in jQuery.cache ) {
|
||||||
if ( jQuery.cache[ id ].handle ) {
|
if ( jQuery.cache[ id ].handle ) {
|
||||||
|
|
Loading…
Reference in a new issue