aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-08-07 19:11:49 -0400
committerScott González <scott.gonzalez@gmail.com>2011-08-07 19:11:49 -0400
commit2a8a77a9b287e247b2b191f9e282e82e370ee525 (patch)
tree170186388d002a544b5ae52f2450d6bd1bec405b /ui
parentc6c957224f8b639f74d4369f2a02fcdad92c8547 (diff)
downloadjquery-ui-2a8a77a9b287e247b2b191f9e282e82e370ee525.tar.gz
jquery-ui-2a8a77a9b287e247b2b191f9e282e82e370ee525.zip
Spinner: More tests. Don't trigger spin when programmatically stepping or paging.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.spinner.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js
index 71f6a2332..b36bdd9fd 100644
--- a/ui/jquery.ui.spinner.js
+++ b/ui/jquery.ui.spinner.js
@@ -253,7 +253,7 @@ $.widget( "ui.spinner", {
// clamp the new value
newVal = this._trimValue( newVal );
- if ( this._trigger( "spin", event, { value: newVal } ) !== false) {
+ if ( !this.spinning || this._trigger( "spin", event, { value: newVal } ) !== false) {
this._value( newVal );
this.counter++;
}