diff options
Diffstat (limited to 'ui/jquery.ui.spinner.js')
-rw-r--r-- | ui/jquery.ui.spinner.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js index 87e611ede..ad1698d16 100644 --- a/ui/jquery.ui.spinner.js +++ b/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);
},
|