1. srichter
  2. jqplot-dotted-line

Commits

cleonello  committed 3b6c07e

Fixed up some lint.

  • Participants
  • Parent commits 1da3463
  • Branches default
  • Tags 0.9.5.1

Comments (0)

Files changed (3)

File src/jqplot.core.js

View file
             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');
             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');

File src/jqplot.linearAxisRenderer.js

View file
                     // 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;

File src/jqplot.markerRenderer.js

View file
         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});