From 200b6b55915fc73144b4d5e1e6fabd5cec4e0c88 Mon Sep 17 00:00:00 2001 From: Jason Bedard Date: Sat, 14 Jun 2014 23:46:31 -0700 Subject: [PATCH] perf($compile): no longer need nodeType filter when setting $scope data --- src/ng/compile.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/ng/compile.js b/src/ng/compile.js index 2fe8fc117827..f4b26a42e5d1 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -865,14 +865,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) { $linkNode.data('$' + name + 'Controller', instance); }); - // Attach scope only to non-text nodes. - for(var i = 0, ii = $linkNode.length; i