diff options
| author | Igor Minar | 2013-09-20 10:50:10 -0700 | 
|---|---|---|
| committer | Igor Minar | 2013-09-20 13:55:16 -0700 | 
| commit | 255e8c13cf0fd78f1c4d7c279be7bf47c2402956 (patch) | |
| tree | 8dbf9430b809552bb1c9a506dc0be9a697383db4 /src/ngRoute/directive | |
| parent | 88317a2888b742894c7942896dc038159f8e1afb (diff) | |
| download | angular.js-255e8c13cf0fd78f1c4d7c279be7bf47c2402956.tar.bz2 | |
fix(ngView): IE8 regression due to expando on non-element nodes
This fixes the "TypeError: Object doesn't support this property or method" error on IE8,
when view templates contain leading white-space.
Closes #3971
Diffstat (limited to 'src/ngRoute/directive')
| -rw-r--r-- | src/ngRoute/directive/ngView.js | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/ngRoute/directive/ngView.js b/src/ngRoute/directive/ngView.js index d67d8a76..27357962 100644 --- a/src/ngRoute/directive/ngView.js +++ b/src/ngRoute/directive/ngView.js @@ -223,7 +223,7 @@ function ngViewFactory(   $route,   $anchorScroll,   $compile,   $controller,                    currentScope[current.controllerAs] = controller;                  }                  clone.data('$ngControllerController', controller); -                clone.contents().data('$ngControllerController', controller); +                clone.children().data('$ngControllerController', controller);                }                link(currentScope); | 
