summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/shortcodes/js/jquery.cycle.js')
-rw-r--r--plugins/jetpack/modules/shortcodes/js/jquery.cycle.js40
1 files changed, 20 insertions, 20 deletions
diff --git a/plugins/jetpack/modules/shortcodes/js/jquery.cycle.js b/plugins/jetpack/modules/shortcodes/js/jquery.cycle.js
index 89d583eb..d12df1ba 100644
--- a/plugins/jetpack/modules/shortcodes/js/jquery.cycle.js
+++ b/plugins/jetpack/modules/shortcodes/js/jquery.cycle.js
@@ -22,7 +22,7 @@ if ($.support === undefined) {
function debug(s) {
if ($.fn.cycle.debug)
log(s);
-}
+}
function log() {
if (window.console && console.log)
console.log('[cycle] ' + Array.prototype.join.call(arguments,' '));
@@ -66,7 +66,7 @@ $.fn.cycle = function(options, arg2) {
return;
opts.updateActivePagerLink = opts.updateActivePagerLink || $.fn.cycle.updateActivePagerLink;
-
+
// stop existing slideshow for this container (if there is one)
if (this.cycleTimeout)
clearTimeout(this.cycleTimeout);
@@ -184,7 +184,7 @@ function handleArguments(cont, options, arg2) {
return false;
}
return options;
-
+
function checkInstantResume(isPaused, arg2, cont) {
if (!isPaused && arg2 === true) { // resume now!
var options = $(cont).data('cycle.opts');
@@ -214,7 +214,7 @@ function destroy(cont, opts) {
$(opts.next).unbind(opts.prevNextEvent);
if (opts.prev)
$(opts.prev).unbind(opts.prevNextEvent);
-
+
if (opts.pager || opts.pagerAnchorBuilder)
$.each(opts.pagerAnchors || [], function() {
this.unbind().remove();
@@ -268,7 +268,7 @@ function buildOptions($cont, $slides, els, options, o) {
opts.startingSlide = parseInt(opts.startingSlide,10);
if (opts.startingSlide >= els.length || opts.startSlide < 0)
opts.startingSlide = 0; // catch bogus input
- else
+ else
startingSlideSpecified = true;
}
else if (opts.backwards)
@@ -361,7 +361,7 @@ function buildOptions($cont, $slides, els, options, o) {
});
});
}
-
+
// stretch container
var reshape = (opts.containerResize || opts.containerResizeHeight) && !$cont.innerHeight();
if (reshape) { // do this only if container has no size http://tinyurl.com/da2oa9
@@ -447,7 +447,7 @@ function buildOptions($cont, $slides, els, options, o) {
opts.speed = $.fx.speeds[opts.speed] || parseInt(opts.speed,10);
if (!opts.sync)
opts.speed = opts.speed / 2;
-
+
var buffer = opts.fx == 'none' ? 0 : opts.fx == 'shuffle' ? 500 : 250;
while((opts.timeout - opts.speed) < buffer) // sanitize timeout
opts.timeout += opts.speed;
@@ -705,7 +705,7 @@ function go(els, opts, manual, fwd) {
};
debug('tx firing('+fx+'); currSlide: ' + opts.currSlide + '; nextSlide: ' + opts.nextSlide);
-
+
// get ready to perform the transition
opts.busy = 1;
if (opts.fxFn) // fx function provided?
@@ -760,7 +760,7 @@ function go(els, opts, manual, fwd) {
}
if (changed && opts.pager)
opts.updateActivePagerLink(opts.pager, opts.currSlide, opts.activePagerClass);
-
+
function queueNext() {
// stage the next transition
var ms = 0, timeout = opts.timeout;
@@ -857,7 +857,7 @@ $.fn.cycle.createPagerAnchor = function(i, el, $p, els, opts) {
}
else
a = '<a href="#">'+(i+1)+'</a>';
-
+
if (!a)
return;
var $a = $(a);
@@ -879,7 +879,7 @@ $.fn.cycle.createPagerAnchor = function(i, el, $p, els, opts) {
opts.pagerAnchors = opts.pagerAnchors || [];
opts.pagerAnchors.push($a);
-
+
var pagerFn = function(e) {
e.preventDefault();
opts.nextSlide = i;
@@ -894,30 +894,30 @@ $.fn.cycle.createPagerAnchor = function(i, el, $p, els, opts) {
go(els,opts,1,opts.currSlide < i); // trigger the trans
// return false; // <== allow bubble
};
-
+
if ( /mouseenter|mouseover/i.test(opts.pagerEvent) ) {
$a.hover(pagerFn, function(){/* no-op */} );
}
else {
$a.bind(opts.pagerEvent, pagerFn);
}
-
+
if ( ! /^click/.test(opts.pagerEvent) && !opts.allowPagerClickBubble)
$a.bind('click.cycle', function(){return false;}); // suppress click
-
+
var cont = opts.$cont[0];
var pauseFlag = false; // https://github.com/malsup/cycle/issues/44
if (opts.pauseOnPagerHover) {
$a.hover(
- function() {
+ function() {
pauseFlag = true;
- cont.cyclePause++;
+ cont.cyclePause++;
triggerPause(cont,true,true);
- }, function() {
+ }, function() {
if (pauseFlag)
- cont.cyclePause--;
+ cont.cyclePause--;
triggerPause(cont,true,true);
- }
+ }
);
}
};
@@ -990,7 +990,7 @@ $.fn.cycle.custom = function(curr, next, opts, cb, fwd, speedOverride) {
};
$l.animate(opts.animOut, speedOut, easeOut, function() {
$l.css(opts.cssAfter);
- if (!opts.sync)
+ if (!opts.sync)
fn();
});
if (opts.sync) fn();