You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
It seems that removeClass and addClass are being passed undefined which is causing problems. As a quick hack, checking for undefined apparently fixes the issue:
function removeClass(classVal) {
if (classVal === undefined) {
return;
}
if (isObject(classVal) && !isArray(classVal)) {
classVal = map(classVal, function(v, k) { if (v) return k });
}
element.removeClass(isArray(classVal) ? classVal.join(' ') : classVal);
}
function addClass(classVal) {
if (classVal === undefined) {
return;
}
if (isObject(classVal) && !isArray(classVal)) {
classVal = map(classVal, function(v, k) { if (v) return k });
}
if (classVal) {
element.addClass(isArray(classVal) ? classVal.join(' ') : classVal);
}
}
@timothyswt Tim, both plunkers seem to be broken so I can't re-test but the #1637 was closed and it should fix your issue as well. Could you test with the version from http://code.angularjs.org/snapshot/angular.js to confirm?
even/odd classes randomly not getting applied properly in 1.0.3 when used in an ng-repeat
1.0.2
http://plnkr.co/edit/hXTbxR?p=preview
1.0.3
http://plnkr.co/edit/DdJQCH?p=preview
scroll through on each one and you will see what I mean.
The text was updated successfully, but these errors were encountered: