Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Fixes #941.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasgriffin committed Dec 12, 2013
1 parent ca347d4 commit 5f5a9ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jquery.flexslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
slider.currentItem = slider.currentSlide;
slider.slides.removeClass(namespace + "active-slide").eq(slider.currentItem).addClass(namespace + "active-slide");
if(!msGesture){
slider.slides.click(function(e){
slider.slides.on(eventType, function(e){
e.preventDefault();
var $slide = $(this),
target = $slide.index();
Expand Down Expand Up @@ -599,7 +599,7 @@

if ('hidden' in document) return 'hidden';
for (var i = 0; i < prefixes.length; i++) {
if ((prefixes[i] + 'Hidden') in document)
if ((prefixes[i] + 'Hidden') in document)
methods.pauseInvisible.visProp = prefixes[i] + 'Hidden';
}
if (methods.pauseInvisible.visProp) {
Expand All @@ -614,7 +614,7 @@
else (slider.vars.initDelay > 0) ? setTimeout(slider.play, slider.vars.initDelay) : slider.play(); //Didn't init before: simply init or wait for it
}
});
}
}
},
isHidden: function() {
return document[methods.pauseInvisible.visProp] || false;
Expand Down

0 comments on commit 5f5a9ca

Please sign in to comment.