mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Spinner: Replace var that with this and _delay
This commit is contained in:
5
ui/jquery.ui.spinner.js
vendored
5
ui/jquery.ui.spinner.js
vendored
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user