Skip to content

Commit

Permalink
Updated root files.
Browse files Browse the repository at this point in the history
  • Loading branch information
srobbin committed Sep 5, 2012
1 parent 62ee198 commit 260658f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions jquery.backstretch.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
centeredX: true // Should we center the image on the X axis?
, centeredY: true // Should we center the image on the Y axis?
, duration: 5000 // Amount of time in between slides (if slideshow)
, fade: 'fast' // Speed of fade transition between slides
, fade: 0 // Speed of fade transition between slides
};

/* STYLES
Expand Down Expand Up @@ -219,7 +219,8 @@
self.resize();

// Show the image, then delete the old one
$(this).fadeIn(self.options.fade, function () {
// "speed" option has been deprecated, but we want backwards compatibilty
$(this).fadeIn(self.options.fade || self.options.speed, function () {
oldImage.remove();

// Resume the slideshow
Expand Down Expand Up @@ -264,7 +265,9 @@
, cycle: function () {
// Start/resume the slideshow
if(this.images.length > 1) {
// Clear the interval, just in case
clearInterval(this.interval);

this.interval = setInterval($.proxy(function () {
// Check for paused slideshow
if (!this.paused) {
Expand Down
2 changes: 1 addition & 1 deletion jquery.backstretch.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 260658f

Please sign in to comment.