]> source.dussan.org Git - jquery-ui.git/commitdiff
Spinner: Added comment with formula that approximates current incrementing logic.
authorScott González <scott.gonzalez@gmail.com>
Sat, 6 Aug 2011 21:10:09 +0000 (17:10 -0400)
committerScott González <scott.gonzalez@gmail.com>
Sat, 6 Aug 2011 21:10:09 +0000 (17:10 -0400)
ui/jquery.ui.spinner.js

index a18cc3b3b3ce0b7c8cea1cf2971d03fa6a28d787..49bbc7bf274a705081f26e66362eeee491469324 100644 (file)
@@ -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