aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.spinner.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2011-09-13 00:28:29 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2011-09-13 00:28:29 +0200
commit61290de86d95fcbcf8eb19a0229768855a80c0a2 (patch)
treeed0688b20ec58c5218bc24b76f83d4ce20149dbc /ui/jquery.ui.spinner.js
parent45ed8d8447ce270682a1294cbd120195d446d907 (diff)
downloadjquery-ui-61290de86d95fcbcf8eb19a0229768855a80c0a2.tar.gz
jquery-ui-61290de86d95fcbcf8eb19a0229768855a80c0a2.zip
Spinner: Replace var that with this and _delay
Diffstat (limited to 'ui/jquery.ui.spinner.js')
-rw-r--r--ui/jquery.ui.spinner.js5
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 );