Skip to content

Commit

Permalink
Unlink elements var to aid GC and avoid detacted DOM elements
Browse files Browse the repository at this point in the history
  • Loading branch information
protodave committed Jul 1, 2014
1 parent 9be5041 commit e2e2438
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions svg-injector.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@
injectElement(elements, evalScripts, pngFallback, function (svg) {
if (eachCallback && typeof eachCallback === 'function') eachCallback(svg);
if (done) done(1);
elements = null;
});
}
else {
Expand Down

0 comments on commit e2e2438

Please sign in to comment.