diff --git a/responsiveslides.js b/responsiveslides.js index d6ef35d..4b435bf 100644 --- a/responsiveslides.js +++ b/responsiveslides.js @@ -213,7 +213,7 @@ var idx = $tabs.index(this); // Break if element is already active or currently animated - if (index === idx || $("." + visibleClass + ":animated").length) { + if (index === idx || $slide.queue('fx').length) { return; } @@ -258,7 +258,7 @@ e.preventDefault(); // Prevent clicking if currently animated - if ($("." + visibleClass + ":animated").length) { + if ($slide.queue('fx').length) { return; } diff --git a/responsiveslides.min.js b/responsiveslides.min.js index b50459a..4f47348 100644 --- a/responsiveslides.min.js +++ b/responsiveslides.min.js @@ -1,6 +1,2 @@ /*! http://responsiveslides.com v1.32 by @viljamis */ -(function(d,D,v){d.fn.responsiveSlides=function(h){var b=d.extend({auto:!0,speed:1E3,timeout:4E3,pager:!1,nav:!1,random:!1,pause:!1,pauseControls:!1,prevText:"Previous",nextText:"Next",maxwidth:"",controls:"",namespace:"rslides",before:function(){},after:function(){}},h);return this.each(function(){v++;var e=d(this),n,p,i,k,l,m=0,f=e.children(),w=f.size(),q=parseFloat(b.speed),x=parseFloat(b.timeout),r=parseFloat(b.maxwidth),c=b.namespace,g=c+v,y=c+"_nav "+g+"_nav",s=c+"_here",j=g+"_on",z=g+"_s", -o=d("