Skip to content

Commit

Permalink
Fixed bug with deprecated speed parameter, update to v2.0.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
srobbin committed Oct 1, 2012
1 parent af46250 commit 2ec0c89
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
9 changes: 7 additions & 2 deletions jquery.backstretch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Backstretch - v2.0.0 - 2012-09-05
/*! Backstretch - v2.0.1 - 2012-10-01
* http://srobbin.com/jquery-plugins/backstretch/
* Copyright (c) 2012 Scott Robbin; Licensed MIT */

Expand All @@ -9,6 +9,11 @@
* ========================= */

$.fn.backstretch = function (images, options) {
// We need at least one image
if (images === undefined || images.length === 0) {
$.error("No images were supplied for Backstretch");
}

/*
* Scroll the page one pixel to get the right window height on iOS
* Pretty harmless for everyone else
Expand Down Expand Up @@ -225,7 +230,7 @@

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

// Resume the slideshow
Expand Down
4 changes: 2 additions & 2 deletions jquery.backstretch.min.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jquery.backstretch",
"title": "Backstretch",
"description": "A simple jQuery plugin that allows you to add a dynamically-resized, slideshow-capable background image to any page or element.",
"version": "2.0.0",
"version": "2.0.1",
"homepage": "http://srobbin.com/jquery-plugins/backstretch/",
"author": {
"name": "Scott Robbin",
Expand Down
2 changes: 1 addition & 1 deletion src/jquery.backstretch.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@

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

// Resume the slideshow
Expand Down

0 comments on commit 2ec0c89

Please sign in to comment.