Skip to content

Commit 61290de

Browse files
committed
Spinner: Replace var that with this and _delay
1 parent 45ed8d8 commit 61290de

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ui/jquery.ui.spinner.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,11 @@ $.widget( "ui.spinner", {
202202
},
203203

204204
_repeat: function( i, steps, event ) {
205-
var that = this;
206205
i = i || 500;
207206

208207
clearTimeout( this.timer );
209-
this.timer = setTimeout(function() {
210-
that._repeat( 40, steps, event );
208+
this.timer = this._delay(function() {
209+
this._repeat( 40, steps, event );
211210
}, i );
212211

213212
this._spin( steps * this.options.step, event );

0 commit comments

Comments
 (0)