Spinner: Added comment with formula that approximates current incrementing logic.

This commit is contained in:
Scott González 2011-08-06 17:10:09 -04:00
parent b10c4cdab5
commit e4898fdfc6

View File

@ -234,6 +234,7 @@ $.widget( "ui.spinner", {
} }
// TODO refactor, maybe figure out some non-linear math // 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 && var newVal = this.value() + step * (this.options.incremental &&
this.counter > 20 this.counter > 20
? this.counter > 100 ? this.counter > 100