aboutsummaryrefslogtreecommitdiffstats
path: root/src/directives.js
diff options
context:
space:
mode:
authorIgor Minar2011-09-27 16:59:23 +0200
committerIgor Minar2011-09-28 23:57:01 +0200
commit21b2a5bd212e600cbbf9212982ff556bbdb18e5f (patch)
tree4242c3e56bb40f08d489beb5994108a5c2d669ed /src/directives.js
parentca1e45beafd060b698933886f6425faf365bd31d (diff)
downloadangular.js-21b2a5bd212e600cbbf9212982ff556bbdb18e5f.tar.bz2
chore(directives): add a todo for ng:style
Diffstat (limited to 'src/directives.js')
-rw-r--r--src/directives.js2
1 files changed, 2 insertions, 0 deletions
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){
</doc:example>
*/
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){