From e4898fdfc6877648d8d95b2a87cb022890c8bcca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Sat, 6 Aug 2011 17:10:09 -0400 Subject: [PATCH] Spinner: Added comment with formula that approximates current incrementing logic. --- ui/jquery.ui.spinner.js | 1 + 1 file changed, 1 insertion(+) 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