aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/directive/ngClassSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2013-03-19 22:27:27 -0700
committerMisko Hevery2013-03-29 23:01:52 -0700
commit61f2767ce65562257599649d9eaf9da08f321655 (patch)
treecf9c6809bbee62d19e04961f53d5c89bab9dd663 /test/ng/directive/ngClassSpec.js
parent5eb968553a1130461ab8704535691e00eb154ac2 (diff)
downloadangular.js-61f2767ce65562257599649d9eaf9da08f321655.tar.bz2
feat(ngRepeat): add support for custom tracking of items
BREAKING CHANGE: It is considered an error to have two items produce the same track by key. (This was tolerated before.)
Diffstat (limited to 'test/ng/directive/ngClassSpec.js')
-rw-r--r--test/ng/directive/ngClassSpec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ng/directive/ngClassSpec.js b/test/ng/directive/ngClassSpec.js
index 69afef7a..d4bd76fe 100644
--- a/test/ng/directive/ngClassSpec.js
+++ b/test/ng/directive/ngClassSpec.js
@@ -249,7 +249,7 @@ describe('ngClass', function() {
it('should update ngClassOdd/Even when model is changed by filtering', inject(function($rootScope, $compile) {
element = $compile('<ul>' +
- '<li ng-repeat="i in items" ' +
+ '<li ng-repeat="i in items track by $index" ' +
'ng-class-odd="\'odd\'" ng-class-even="\'even\'"></li>' +
'<ul>')($rootScope);
$rootScope.items = ['a','b','a'];