diff options
| author | Igor Minar | 2010-10-12 05:36:38 +0800 |
|---|---|---|
| committer | Misko Hevery | 2010-10-13 04:37:46 +0800 |
| commit | 70ff7a2639fc55936854ad04a6242a700ae71a02 (patch) | |
| tree | be82632c890b9734d50cd681737b6bad9a689d91 /src/widgets.js | |
| parent | 7e47a2d016676f37287203f26689cce1ee1eaa0c (diff) | |
| download | angular.js-70ff7a2639fc55936854ad04a6242a700ae71a02.tar.bz2 | |
fix memory leak caused by leftbehind $invalidWidgets references
- ng:switch should not clean up $invalidWidgets
- $invalidWidgets should be clean up after each eval
- add missing docs
Diffstat (limited to 'src/widgets.js')
| -rw-r--r-- | src/widgets.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/widgets.js b/src/widgets.js index 127718ce..c1342943 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -324,8 +324,6 @@ var ngSwitch = angularWidget('ng:switch', function (element){ element.append(caseElement); childScope.$tryEval(switchCase.change, element); switchCase.template(caseElement, childScope); - if (scope.$invalidWidgets) - scope.$invalidWidgets.clearOrphans(); childScope.$init(); } }); |
