diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-09-13 00:28:29 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-09-13 00:28:29 +0200 |
commit | 61290de86d95fcbcf8eb19a0229768855a80c0a2 (patch) | |
tree | ed0688b20ec58c5218bc24b76f83d4ce20149dbc | |
parent | 45ed8d8447ce270682a1294cbd120195d446d907 (diff) | |
download | jquery-ui-61290de86d95fcbcf8eb19a0229768855a80c0a2.tar.gz jquery-ui-61290de86d95fcbcf8eb19a0229768855a80c0a2.zip |
Spinner: Replace var that with this and _delay
-rw-r--r-- | ui/jquery.ui.spinner.js | 5 |
1 files 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 ); |