aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/q.js
diff options
context:
space:
mode:
authorPete Bacon Darwin2013-04-16 12:29:56 +0100
committerPete Bacon Darwin2013-04-16 13:15:49 +0100
commit0ac969a5ee1687cfd4517821943f34fe948bb3fc (patch)
tree15fe985df387c9145b39b1659976d93a60d2c27f /src/ng/q.js
parent465238613b5b849bf833bdc71d3b42f15dc0e19b (diff)
downloadangular.js-0ac969a5ee1687cfd4517821943f34fe948bb3fc.tar.bz2
fix(ngClass): should remove classes when object is the same but property has changed
If you wire up ngClass directly to an object on the scope, e.g. ng-class="myClasses", where scope.myClasses = { 'classA': true, 'classB': false }, there was a bug that changing scope.myClasses.classA = false, was not being picked up and classA was not being removed from the element's CSS classes. This fix uses angular.equals for the comparison and ensures that oldVal is a copy of (rather than a reference to) the newVal.
Diffstat (limited to 'src/ng/q.js')
0 files changed, 0 insertions, 0 deletions