diff options
| author | Misko Hevery | 2012-02-23 15:01:08 -0800 |
|---|---|---|
| committer | Misko Hevery | 2012-02-23 15:01:08 -0800 |
| commit | d6e3e1baabc3acc930e4fda387b62cbd03e64577 (patch) | |
| tree | e17ba1673d9d78e4bc71364966ef607fdbc42434 /src/directives.js | |
| parent | ffa84418862a9f768ce5b9b681916438f14a0d79 (diff) | |
| download | angular.js-d6e3e1baabc3acc930e4fda387b62cbd03e64577.tar.bz2 | |
feta(scope): watch object refference or equality
Breaks: Must set $watch equality to true for the old behavior
Diffstat (limited to 'src/directives.js')
| -rw-r--r-- | src/directives.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/directives.js b/src/directives.js index 67c9f1f6..8a2af704 100644 --- a/src/directives.js +++ b/src/directives.js @@ -592,7 +592,7 @@ function classDirective(name, selector) { if (isObject(newVal) && !isArray(newVal)) newVal = map(newVal, function(v, k) { if (v) return k }); if (newVal) element.addClass(isArray(newVal) ? newVal.join(' ') : newVal); } - }); + }, true); }); } @@ -837,7 +837,7 @@ var ngStyleDirective = valueFn(function(scope, element, attr) { forEach(oldStyles, function(val, style) { element.css(style, '');}); } if (newStyles) element.css(newStyles); - }); + }, true); }); |
