diff options
author | Brandon Aaron <brandon.aaron@gmail.com> | 2007-04-26 18:52:10 +0000 |
---|---|---|
committer | Brandon Aaron <brandon.aaron@gmail.com> | 2007-04-26 18:52:10 +0000 |
commit | fba422541a06a05ead698e1bffe4c7ec9a05ba22 (patch) | |
tree | f3c17bb330a1be2f3d9cd355353cf19f7965e1f5 /src/event | |
parent | 33ee5c317d0f1aa64d8d8e567425dd8fe2789cd0 (diff) | |
download | jquery-fba422541a06a05ead698e1bffe4c7ec9a05ba22.tar.gz jquery-fba422541a06a05ead698e1bffe4c7ec9a05ba22.zip |
Fix for #1061
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/event.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/event/event.js b/src/event/event.js index a3db2f3ab..0acdf6b30 100644 --- a/src/event/event.js +++ b/src/event/event.js @@ -551,6 +551,9 @@ jQuery.extend({ // Remove event lisenter to avoid memory leak if ( jQuery.browser.mozilla || jQuery.browser.opera ) document.removeEventListener( "DOMContentLoaded", jQuery.ready, false ); + + // Remove script element used by IE hack + jQuery(window).load(function(){ jQuery("#__ie_init").remove(); }); } } }); @@ -928,7 +931,6 @@ new function(){ if ( script ) script.onreadystatechange = function() { if ( this.readyState != "complete" ) return; - this.parentNode.removeChild( this ); jQuery.ready(); }; |