From 61290de86d95fcbcf8eb19a0229768855a80c0a2 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Tue, 13 Sep 2011 00:28:29 +0200 Subject: Spinner: Replace var that with this and _delay --- ui/jquery.ui.spinner.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js index a7fb30cc3..d58665265 100644 --- a/ui/jquery.ui.spinner.js +++ b/ui/jquery.ui.spinner.js @@ -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 ); -- cgit v1.2.3