From 99257707a90f7d9ae9845f0912cd6c9ba0e5d974 Mon Sep 17 00:00:00 2001 From: Nirav Sanghani Date: Sun, 16 Jun 2013 01:06:11 -0600 Subject: [PATCH] Restrict sliders to only top-level ul elements --- lib/js/sliders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/js/sliders.js b/lib/js/sliders.js index b659e83..cdbba7d 100644 --- a/lib/js/sliders.js +++ b/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; } }