This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ng-class-odd/even don't always remove classes when new entry prepended #7256
Closed
Description
The recent changes around ng-class-odd and ng-class-even seem to have introduced a bug. When adding an entry at the top of the underlying data array, the shifted entries get the new class added, but the old class is not removed.
Have a look at the example: http://jsfiddle.net/eXh7J/1/
When pressing the "prepend" button, the first few entries look fine, they have only one class. But from the 4th entry on, each entry has two classes. Both the odd and the even class.
This broke with v1.2.16. It was still working in v1.2.15.
Metadata
Metadata
Assignees
Labels
No labels