From 255e8c13cf0fd78f1c4d7c279be7bf47c2402956 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 20 Sep 2013 10:50:10 -0700 Subject: 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 --- src/ngRoute/directive/ngView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ngRoute/directive/ngView.js') 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); -- cgit v1.2.3