From 21b2a5bd212e600cbbf9212982ff556bbdb18e5f Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 27 Sep 2011 16:59:23 +0200 Subject: chore(directives): add a todo for ng:style --- src/directives.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/directives.js b/src/directives.js index 5a8dbafb..4e2b92d4 100644 --- a/src/directives.js +++ b/src/directives.js @@ -804,6 +804,8 @@ angularDirective("ng:hide", function(expression, element){ */ angularDirective("ng:style", function(expression, element){ + // TODO(i): this is inefficient (runs on every $digest) and obtrusive (overrides 3rd part css) + // we should change it in a similar way as I changed ng:class return function(element){ var resetStyle = getStyle(element); this.$watch(function(scope){ -- cgit v1.2.3