aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.spinner.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-08-06 17:10:09 -0400
committerScott González <scott.gonzalez@gmail.com>2011-08-06 17:10:09 -0400
commite4898fdfc6877648d8d95b2a87cb022890c8bcca (patch)
treeb93c603708e47be9a376db636991ad83eb90de94 /ui/jquery.ui.spinner.js
parentb10c4cdab5faf88c8f64c1343f487cb5af8ea4db (diff)
downloadjquery-ui-e4898fdfc6877648d8d95b2a87cb022890c8bcca.tar.gz
jquery-ui-e4898fdfc6877648d8d95b2a87cb022890c8bcca.zip
Spinner: Added comment with formula that approximates current incrementing logic.
Diffstat (limited to 'ui/jquery.ui.spinner.js')
-rw-r--r--ui/jquery.ui.spinner.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js
index a18cc3b3b..49bbc7bf2 100644
--- a/ui/jquery.ui.spinner.js
+++ b/ui/jquery.ui.spinner.js
@@ -234,6 +234,7 @@ $.widget( "ui.spinner", {
}
// TODO refactor, maybe figure out some non-linear math
+ // x*x*x/50000 - x*x/500 + 17*x/200 + 1
var newVal = this.value() + step * (this.options.incremental &&
this.counter > 20
? this.counter > 100