]> source.dussan.org Git - jquery-ui.git/commitdiff
Spinner: Replace var that with this and _delay
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 12 Sep 2011 22:28:29 +0000 (00:28 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 12 Sep 2011 22:28:29 +0000 (00:28 +0200)
ui/jquery.ui.spinner.js

index a7fb30cc365116c3a5f529cd7f7afe9ae3918630..d58665265aa307166b32dd2a57f2177e5581607f 100644 (file)
@@ -202,12 +202,11 @@ $.widget( "ui.spinner", {
        },
 
        _repeat: function( i, steps, event ) {
-               var that = this;
                i = i || 500;
 
                clearTimeout( this.timer );
-               this.timer = setTimeout(function() {
-                       that._repeat( 40, steps, event );
+               this.timer = this._delay(function() {
+                       this._repeat( 40, steps, event );
                }, i );
 
                this._spin( steps * this.options.step, event );