diff options
| author | Igor Minar | 2011-09-27 16:59:23 +0200 |
|---|---|---|
| committer | Igor Minar | 2011-09-28 23:57:01 +0200 |
| commit | 21b2a5bd212e600cbbf9212982ff556bbdb18e5f (patch) | |
| tree | 4242c3e56bb40f08d489beb5994108a5c2d669ed | |
| parent | ca1e45beafd060b698933886f6425faf365bd31d (diff) | |
| download | angular.js-21b2a5bd212e600cbbf9212982ff556bbdb18e5f.tar.bz2 | |
chore(directives): add a todo for ng:style
| -rw-r--r-- | src/directives.js | 2 |
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){ |
