Browse Source

Avoid negative tab indices when using the backwards button. Fixes bug with jquery 1.3.2

pull/127/head
Koblaid 12 years ago
parent
commit
6a674dc8d1
  1. 2
      responsiveslides.js

2
responsiveslides.js

@ -343,7 +343,7 @@
// Determine where to slide
var idx = $slide.index($visibleClass),
prevIdx = idx - 1,
prevIdx = idx - 1 >= 0 ? index - 1 : length -1,
nextIdx = idx + 1 < length ? index + 1 : 0;
// Go to slide

Loading…
Cancel
Save