diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-10-28 17:45:34 +0200 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-10-28 17:45:34 +0200 |
commit | a1eb5f4592be0ab6131f3ccf2e2428cf92900022 (patch) | |
tree | f48d2ae054c0a0da52e8557b75cb5da877469473 /ui/jquery.ui.spinner.js | |
parent | 23157be9c3bcea5766729face92e68d11b5bfe85 (diff) | |
download | jquery-ui-a1eb5f4592be0ab6131f3ccf2e2428cf92900022.tar.gz jquery-ui-a1eb5f4592be0ab6131f3ccf2e2428cf92900022.zip |
Spinner: Make sure that options.value and input.val() are in sync
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);
},
|