Skip to content

Commit

Permalink
Removed placeholder parameters from format default function
Browse files Browse the repository at this point in the history
formattedScale unit test format function, added non-effectual use of the endValue parameter, so that the parameter would still be present as an example but would not trigger warnings in JSHint
  • Loading branch information
Crispin Botticelli committed Mar 9, 2013
1 parent 661b97d commit 633615e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jQRuler.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
next: function(value){
return value + 1;
},
format: function (tick, startValue, endValue) {
format: function () {
return;
},
label: function(tick){
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/rulerTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
return previous + 10;
},
format: function(tick, startValue, endValue){
if (startValue % (2 * 10)) {
if (startValue % (2 * 10) && !(endValue % (2 * 10))) {
tick.addClass("formatterTestClass");
}
},
Expand Down

0 comments on commit 633615e

Please sign in to comment.