aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/dev_guide.unit-testing.ngdoc
diff options
context:
space:
mode:
authorPete Bacon Darwin2013-04-16 12:29:56 +0100
committerPete Bacon Darwin2013-04-16 13:22:37 +0100
commit7898490779c2b2c359f1887c723ee260b3865639 (patch)
treeb05c0f5f83f44be5ba13cb388077ea8a3c09a9b8 /docs/content/guide/dev_guide.unit-testing.ngdoc
parent0893e83c92108a057fff48a316b8a51dfec735ce (diff)
downloadangular.js-7898490779c2b2c359f1887c723ee260b3865639.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 'docs/content/guide/dev_guide.unit-testing.ngdoc')
0 files changed, 0 insertions, 0 deletions