]> source.dussan.org Git - jquery.git/commitdiff
Ensure that the DOM element ref in an event handler is removed by cleanData to avoid...
authorDave Methvin <dave.methvin@gmail.com>
Sun, 9 Jan 2011 22:25:44 +0000 (16:25 -0600)
committerColin Snover <github.com@zetafleet.com>
Sun, 9 Jan 2011 22:25:44 +0000 (16:25 -0600)
src/manipulation.js

index 96caa02d0b2948a14b91343b44b0d8900383c890..493082212d8410d0ffe4c2d19e407139f18e4e54 100644 (file)
@@ -617,6 +617,11 @@ jQuery.extend({
                                                        jQuery.removeEvent( elem, type, data.handle );
                                                }
                                        }
+
+                                       // Null the DOM reference to avoid IE6/7/8 leak (#7054)
+                                       if ( data.handle ) {
+                                               data.handle.elem = null;
+                                       }
                                }
 
                                if ( deleteExpando ) {