Browse Source

Remove extra bits

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

12
responsiveslides.js

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

Loading…
Cancel
Save