Skip to content
Permalink
Browse files

Spinner: Added comment with formula that approximates current increme…

…nting logic.
  • Loading branch information...
scottgonzalez committed Aug 6, 2011
1 parent b10c4cd commit e4898fdfc6877648d8d95b2a87cb022890c8bcca
Showing with 1 addition and 0 deletions.
  1. +1 −0 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

0 comments on commit e4898fd

Please sign in to comment.
You can’t perform that action at this time.