Skip to content
Permalink
Browse files

Spinner: Replace var that with this and _delay

  • Loading branch information...
jzaefferer committed Sep 12, 2011
1 parent 45ed8d8 commit 61290de86d95fcbcf8eb19a0229768855a80c0a2
Showing with 2 additions and 3 deletions.
  1. +2 −3 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 );

0 comments on commit 61290de

Please sign in to comment.
You can’t perform that action at this time.