]> source.dussan.org Git - jquery.git/commitdiff
Landing pull request 389. Null elements in clone to avoid memory leak in IE. Fixes...
authorScott Hughes <hi@scott-hughes.me>
Wed, 25 May 2011 19:18:13 +0000 (15:18 -0400)
committertimmywil <tim.willison@thisismedium.com>
Wed, 25 May 2011 19:18:13 +0000 (15:18 -0400)
More Details:
 - https://github.com/jquery/jquery/pull/389
 - http://bugs.jquery.com/ticket/9341

src/manipulation.js

index a148658f5e116f50cf31c61feed1548358d2a36b..c76aa9e0db2da7357e952afedaf3f8293b9818f2 100644 (file)
@@ -582,6 +582,8 @@ jQuery.extend({
                        }
                }
 
+               srcElements = destElements = null;
+
                // Return the cloned set
                return clone;
        },