Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Fixed up some lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
cleonello committed Oct 25, 2009
1 parent f4e499d commit 6f75095
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/jqplot.core.js
Expand Up @@ -1100,13 +1100,13 @@
if (!this.target.height()) {
var h;
if (options && options.height) {
h = parseInt(options.height);
h = parseInt(options.height, 10);
}
else if (this.target.attr('data-height')) {
h = parseInt(this.target.attr('data-height'));
h = parseInt(this.target.attr('data-height'), 10);
}
else {
h = parseInt($.jqplot.config.defaultHeight);
h = parseInt($.jqplot.config.defaultHeight, 10);
}
this._height = h;
this.target.css('height', h+'px');
Expand All @@ -1117,13 +1117,13 @@
if (!this.target.width()) {
var w;
if (options && options.width) {
w = parseInt(options.width);
w = parseInt(options.width, 10);
}
else if (this.target.attr('data-width')) {
w = parseInt(this.target.attr('data-width'));
w = parseInt(this.target.attr('data-width'), 10);
}
else {
w = parseInt($.jqplot.config.defaultWidth);
w = parseInt($.jqplot.config.defaultWidth, 10);
}
this._width = w;
this.target.css('width', w+'px');
Expand Down
2 changes: 1 addition & 1 deletion src/jqplot.linearAxisRenderer.js
Expand Up @@ -328,7 +328,7 @@
// what tick interval does that give us?
ti = max/(this.numberTicks-1);
temp = Math.pow(10, Math.abs(Math.floor(Math.log(ti)/Math.LN10)));
if (ti/temp == parseInt(ti/temp)) {
if (ti/temp == parseInt(ti/temp, 10)) {
ti += temp;
}
this.tickInterval = Math.ceil(ti/temp) * temp;
Expand Down
2 changes: 1 addition & 1 deletion src/jqplot.markerRenderer.js
Expand Up @@ -119,7 +119,7 @@
var dx = this.size/2*stretch;
var dy = this.size/2*stretch;
var opts = $.extend(true, {}, this.options, {closePath:false});
var points1 = [[x-dx, y-dy], [x+dx, y+dy]]
var points1 = [[x-dx, y-dy], [x+dx, y+dy]];
var points2 = [[x-dx, y+dy], [x+dx, y-dy]];
if (this.shadow) {
this.shadowRenderer.draw(ctx, points1, {closePath:false});
Expand Down

0 comments on commit 6f75095

Please sign in to comment.