Commits

Chris Leonello committed 3b6c07e

Fixed up some lint.

Comments (0)

Files changed (3)

src/jqplot.core.js

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

src/jqplot.linearAxisRenderer.js

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

src/jqplot.markerRenderer.js

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