Skip to content
Permalink
Browse files

Spinner: Make sure that options.value and input.val() are in sync

  • Loading branch information...
jzaefferer committed Oct 28, 2010
1 parent 23157be commit a1eb5f4592be0ab6131f3ccf2e2428cf92900022
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/jquery.ui.spinner.js
@@ -243,7 +243,7 @@ $.widget('ui.spinner', {
}

// TODO refactor, maybe figure out some non-linear math
var newVal = this.options.value + step * (this.options.incremental &&
var newVal = this.value() + step * (this.options.incremental &&
this.counter > 20
? this.counter > 100
? this.counter > 200
@@ -355,7 +355,7 @@ $.widget('ui.spinner', {

value: function(newVal) {
if (!arguments.length) {
return this.options.value;
return this._parse(this.element.val());
}
this.option('value', newVal);
},

0 comments on commit a1eb5f4

Please sign in to comment.
You can’t perform that action at this time.