mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Spinner: Replace var that with this and _delay
This commit is contained in:
parent
45ed8d8447
commit
61290de86d
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 );
|
||||
|
Loading…
Reference in New Issue
Block a user