]> source.dussan.org Git - jquery-ui.git/commitdiff
Spinner: Fixed mousewheel stop timer.
authorScott González <scott.gonzalez@gmail.com>
Thu, 13 Oct 2011 20:47:01 +0000 (16:47 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 13 Oct 2011 20:47:01 +0000 (16:47 -0400)
ui/jquery.ui.spinner.js

index b834dc2f49a6d4e964b0b92bdd59ac4fb5ebd074..be2aaa24620eda9c02dc480d41c9e65b18b28a58 100644 (file)
@@ -93,7 +93,7 @@ $.widget( "ui.spinner", {
 
                        this._spin( (delta > 0 ? 1 : -1) * this.options.step, event );
                        clearTimeout( this.mousewheelTimer );
-                       this.mousewheelTimer = setTimeout(function() {
+                       this.mousewheelTimer = this._delay(function() {
                                if ( this.spinning ) {
                                        this._stop( event );
                                }