We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23157be commit a1eb5f4Copy full SHA for a1eb5f4
ui/jquery.ui.spinner.js
@@ -243,7 +243,7 @@ $.widget('ui.spinner', {
243
}
244
245
// TODO refactor, maybe figure out some non-linear math
246
- var newVal = this.options.value + step * (this.options.incremental &&
+ var newVal = this.value() + step * (this.options.incremental &&
247
this.counter > 20
248
? this.counter > 100
249
? this.counter > 200
@@ -355,7 +355,7 @@ $.widget('ui.spinner', {
355
356
value: function(newVal) {
357
if (!arguments.length) {
358
- return this.options.value;
+ return this._parse(this.element.val());
359
360
this.option('value', newVal);
361
},
0 commit comments