]> source.dussan.org Git - jquery.git/commitdiff
Fix for #1061
authorBrandon Aaron <brandon.aaron@gmail.com>
Thu, 26 Apr 2007 18:52:10 +0000 (18:52 +0000)
committerBrandon Aaron <brandon.aaron@gmail.com>
Thu, 26 Apr 2007 18:52:10 +0000 (18:52 +0000)
src/event/event.js

index a3db2f3ab0bcb501fe85903d0175c4e253913390..0acdf6b30782d72da384e9495bb0b3150ef3771e 100644 (file)
@@ -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();
                        };