aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.spinner.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.ui.spinner.js')
-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++;
}