Browse Source

Removed unnecessary check since querySelectorAll always returns a NodeList

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

2
lib/js/segmented-controllers.js

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

Loading…
Cancel
Save