Browse Source

Merge pull request #196 from iamnirav/patch-1

Restrict sliders to only top-level ul elements
pull/142/merge
Connor Sears 11 years ago
parent
commit
39f3a78d0d
  1. 2
      lib/js/sliders.js

2
lib/js/sliders.js

@ -22,7 +22,7 @@
var scrollableArea;
var getSlider = function (target) {
var i, sliders = document.querySelectorAll('.slider ul');
var i, sliders = document.querySelectorAll('.slider > ul');
for (; target && target !== document; target = target.parentNode) {
for (i = sliders.length; i--;) { if (sliders[i] === target) return target; }
}

Loading…
Cancel
Save