aboutsummaryrefslogtreecommitdiffstats
path: root/src/directives.js
diff options
context:
space:
mode:
authorMisko Hevery2012-02-23 15:01:08 -0800
committerMisko Hevery2012-02-23 15:01:08 -0800
commitd6e3e1baabc3acc930e4fda387b62cbd03e64577 (patch)
treee17ba1673d9d78e4bc71364966ef607fdbc42434 /src/directives.js
parentffa84418862a9f768ce5b9b681916438f14a0d79 (diff)
downloadangular.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.js4
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);
});