-
Notifications
You must be signed in to change notification settings - Fork 27.4k
angular + jquery: memory leaks in IE8 #1216
Comments
Did anybody manage to reproduce the problem? |
Pawel, can you reproduce this on windows? |
If I run the fiddle in its own browser window in IE9 on Win7 and click On 18 November 2012 20:49, Igor Minar notifications@github.com wrote:
|
@IgorMinar @petebacondarwin Yeh, I can confirm this in IE9 / Win7. It also happens when I remove jQuery (!) on the AngularJS 1.0.2. Here is the jsFiddle I've used: http://jsfiddle.net/8Suhj/1/ Chrome and FFox show healthy patterns so this is indeed IE-only issue. @EugeneZarya Did you observe this only with jQuery? Or you dimply didn't have chance to test without jQuery? |
It looks very weird because I haven't observed this without jQuery. You are right, now it leaks even with single AngularJS. |
So, a small update on this one: I've just noticed that in the example jsFiddle the same controllers are referenced twice: once on a route level and another time in a partial. If I remove controllers from partials (as those normally shouldn't be there) the leak goes away: http://jsfiddle.net/8Suhj/4/ Still, don't have enough knowledge of AngularJS to know how to interpret it but maybe it will ring a bell to someone... |
For sure, the last jsFiddle doesn't leak. But still, if ngController is defined within a partial, the application leaks: http://jsfiddle.net/9r2sW/ |
@EugeneZarya Sure, I'm not saying that we should abandon investigations here :-) Just trying to narrow it down. Now I'm a bit suspecting that this is linked more to the ng-controller than to routes. As a next step I want to change routes to ng-include to see if it still leaks. If so it would mean that the ng-controller is a culprit here. |
OK, a much simpler reproduce scenario without jQuery and routing, only |
Is it possible that this is an NFE leak? The only possible NFE leak I see in the code is in compile.js. To fix it you can do something like this: https://github.com/alkis/angular.js/commit/8465b9acc809b416ee0da4accada4bb89729516c |
As part of our effort to clean out old issues, this issue is being automatically closed since it has been inactivite for over two months. Please try the newest versions of Angular ( Thanks! |
When using angular with jquery and setting up route navigation, scope object(-s) leaks in IE8 (hasn't been tested in IE9) when switching between views.
Please see http://jsfiddle.net/ADukg/467/
Notes:
The text was updated successfully, but these errors were encountered: