aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.spinner.js
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-10-28 17:45:34 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-10-28 17:45:34 +0200
commita1eb5f4592be0ab6131f3ccf2e2428cf92900022 (patch)
treef48d2ae054c0a0da52e8557b75cb5da877469473 /ui/jquery.ui.spinner.js
parent23157be9c3bcea5766729face92e68d11b5bfe85 (diff)
downloadjquery-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.js4
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);
},