Skip to content

Commit

Permalink
Fixed issue where callback was passed in without any options.
Browse files Browse the repository at this point in the history
  • Loading branch information
srobbin committed Oct 28, 2011
1 parent f01c92d commit 9efe69b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion jquery.backstretch.js
@@ -1,6 +1,6 @@
/*
* jQuery Backstretch
* Version 1.2.3
* Version 1.2.4
* http://srobbin.com/jquery-plugins/jquery-backstretch/
*
* Add a dynamically-resized background image to the page
Expand All @@ -25,6 +25,9 @@

// Extend the settings with those the user has provided
if(options && typeof options == "object") $.extend(settings, options);

// Just in case the user passed in a function without options
if(options && typeof options == "function") callback = options;

// Initialize
$(document).ready(_init);
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.

0 comments on commit 9efe69b

Please sign in to comment.