Skip to content

Commit

Permalink
Spinner: Added comment with formula that approximates current increme…
Browse files Browse the repository at this point in the history
…nting logic.
  • Loading branch information
scottgonzalez committed Aug 6, 2011
1 parent b10c4cd commit e4898fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/jquery.ui.spinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4898fd

Please sign in to comment.