Skip to main content

Bug Tracker

Side navigation

Ticket #1061: event.diff
File event.diff, 0.9 KB (added by john, March 29, 2007 05:49PM UTC)

Tweaked the patch to use jQuery() and the actual window (not the window element).

Index: src/event/event.js
===================================================================
--- File src/event/event.js (revision 1560)
+++ File src/event/event.js (working copy)
@@ -530,6, +530,9 @@
              // 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(); }); 
          } 
      } 
  }); 
@@ -907,7, +910,6 @@
          if ( script )  
              script.onreadystatechange = function() { 
                  if ( this.readyState != "complete" ) return; 
-                 this.parentNode.removeChild( this ); 
                  jQuery.ready(); 
              };

Download in other formats:

Original Format