This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
document leak for iframe directive #6093
Closed
Description
Hi,
I found strange thing, when I use iframe-based angular directive like this
<iframe ng-src="https://github.com/%7B%7Burl%7D%7D"></iframe>
I found that number of documents increased, I controlled this parameter via chrome -> developer tools -> timeline. I fired manually gc a number of times but documents count stay unchanged.
I use latest version of chrome i.e. Version 32.0.1700.102 m and angular, i.e. Angular 1.2.10.
This example not mine, but I see the same behavior, if you press to the button you can see that number of DOM documents increased (and never decreased).
http://embed.plnkr.co/RDOJvgBdu4OKQBk1MfHL/preview
Does it mean that I forget something like this:
scope.$on('$destroy', function(){
$element.find('#myframe').off();
$element.find('#myframe').remove();
$element.off();
});
Or it is chrome/angular bug ?
Thanks,
Igor