Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1479 from ExactTarget/spinner-step-declarative
Browse files Browse the repository at this point in the history
Allow spinner step interval option to be set via data attribute
  • Loading branch information
interactivellama committed Aug 21, 2015
2 parents 1269099 + e3a6544 commit 3f60fa5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/spinbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
e.preventDefault();
});
this.options = $.extend({}, $.fn.spinbox.defaults, options);
this.options.step = this.$element.data('step') || this.options.step;

this.$input = this.$element.find('.spinbox-input');
this.$element.on('focusin.fu.spinbox', this.$input, $.proxy(this.changeFlag, this));
this.$element.on('focusout.fu.spinbox', this.$input, $.proxy(this.change, this));
Expand Down

0 comments on commit 3f60fa5

Please sign in to comment.