Browse Source

Removed unnecessary check since querySelectorAll always returns a NodeList

pull/173/head
Cox Chen 12 years ago
parent
commit
fd352823dd
  1. 6
      lib/js/segmented-controllers.js

6
lib/js/segmented-controllers.js

@ -38,10 +38,8 @@
activeBodies = targetBody.parentNode.querySelectorAll(classSelector);
if (activeBodies) {
for (var i = 0; i < activeBodies.length; i++){
activeBodies[i].classList.remove(className);
}
for (var i = 0; i < activeBodies.length; i++){
activeBodies[i].classList.remove(className);
}
targetBody.classList.add(className);

Loading…
Cancel
Save