Skip to content

Commit

Permalink
Merge pull request woocommerce#942 from thomasgriffin/master
Browse files Browse the repository at this point in the history
Changes events to use on( eventType ). Fixes woocommerce#941.
  • Loading branch information
mattyza committed Dec 13, 2013
2 parents 421ad38 + 5f5a9ca commit 5ece115
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 5ece115

Please sign in to comment.