Browse Source

Remove extra bits

pull/7/head
Viljami S 13 years ago
parent
commit
fb3133382b
  1. 8
      responsiveslides.js

8
responsiveslides.js

@ -24,8 +24,6 @@
var $slide = $this.find('img'), var $slide = $this.find('img'),
hasTouch = 'ontouchstart' in window, hasTouch = 'ontouchstart' in window,
startEvent = hasTouch ? 'touchstart' : 'mousedown', startEvent = hasTouch ? 'touchstart' : 'mousedown',
endEvent = hasTouch ? 'touchend' : 'mouseup',
cancelEvent = hasTouch ? 'touchcancel' : 'mouseup',
namespace = settings.namespace, namespace = settings.namespace,
activeClass = namespace + '_here', activeClass = namespace + '_here',
visibleClass = namespace + '_on', visibleClass = namespace + '_on',
@ -99,13 +97,13 @@
e.preventDefault(); e.preventDefault();
}); });
$el.bind(startEvent, function (e) { $el.bind(startEvent, function () {
//e.preventDefault(); // if currently animated
// Prevent clicking if animated
if ($('.' + visibleClass + ':animated').length) { if ($('.' + visibleClass + ':animated').length) {
return false; return false;
} }
if (!($el.parent().hasClass(activeClass))) { if (!($el.parent().hasClass(activeClass))) {
$('.' + tabsClass + ' li').removeClass(activeClass); $('.' + tabsClass + ' li').removeClass(activeClass);
$('.' + visibleClass).stop().fadeOut(fadetime, function () { $('.' + visibleClass).stop().fadeOut(fadetime, function () {

Loading…
Cancel
Save