From 95731308b29d589c7b8b2cb3e3239abd1bd10e4e Mon Sep 17 00:00:00 2001 From: Matthew McFarling Date: Thu, 27 Jun 2013 20:11:32 -0400 Subject: [PATCH] small bug fix for prevIndex, javascript minified --- responsiveslides.js | 2 +- responsiveslides.min.js | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/responsiveslides.js b/responsiveslides.js index 625da95..d968d9a 100644 --- a/responsiveslides.js +++ b/responsiveslides.js @@ -343,7 +343,7 @@ // Determine where to slide var idx = $slide.index($visibleClass), - prevIdx = idx - 1 < 0 ? idx : idx - 1, + prevIdx = idx - 1 < 0 ? length - 1 : idx - 1, nextIdx = idx + 1 < length ? index + 1 : 0; // Go to slide diff --git a/responsiveslides.min.js b/responsiveslides.min.js index 21d4832..84896a4 100644 --- a/responsiveslides.min.js +++ b/responsiveslides.min.js @@ -1,8 +1,2 @@ /*! http://responsiveslides.com v1.54 by @viljamis */ -(function(c,I,B){c.fn.responsiveSlides=function(l){var a=c.extend({auto:!0,speed:500,timeout:4E3,pager:!1,nav:!1,random:!1,pause:!1,pauseControls:!0,prevText:"Previous",nextText:"Next",maxwidth:"",navContainer:"",manualControls:"",namespace:"rslides",before:c.noop,after:c.noop},l);return this.each(function(){B++;var f=c(this),s,r,t,m,p,q,n=0,e=f.children(),C=e.size(),h=parseFloat(a.speed),D=parseFloat(a.timeout),u=parseFloat(a.maxwidth),g=a.namespace,d=g+B,E=g+"_nav "+d+"_nav",v=g+"_here",j=d+"_on", -w=d+"_s",k=c("