Skip to content

Commit

Permalink
fix bug with defaults method
Browse files Browse the repository at this point in the history
  • Loading branch information
fitiskin committed Nov 25, 2014
1 parent e1499a4 commit 1264220
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion jquery.fs.stepper.css
@@ -1,5 +1,5 @@
/*
* Stepper v3.0.7 - 2014-05-07
* Stepper v3.0.7 - 2014-11-25
* A jQuery plugin for cross browser number inputs. Part of the Formstone Library.
* http://formstone.it/stepper/
*
Expand Down
4 changes: 2 additions & 2 deletions jquery.fs.stepper.js
@@ -1,5 +1,5 @@
/*
* Stepper v3.0.7 - 2014-05-07
* Stepper v3.0.7 - 2014-11-25
* A jQuery plugin for cross browser number inputs. Part of the Formstone Library.
* http://formstone.it/stepper/
*
Expand Down Expand Up @@ -34,7 +34,7 @@
*/
defaults: function(opts) {
options = $.extend(options, opts || {});
return $(this);
return (typeof this === 'object') ? $(this) : true;
},

/**
Expand Down
4 changes: 2 additions & 2 deletions jquery.fs.stepper.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 src/jquery.fs.stepper.js
Expand Up @@ -26,7 +26,7 @@
*/
defaults: function(opts) {
options = $.extend(options, opts || {});
return $(this);
return (typeof this === 'object') ? $(this) : true;
},

/**
Expand Down

0 comments on commit 1264220

Please sign in to comment.