Commits

Anonymous committed 49e54b2

cleaned up some lint.

Comments (0)

Files changed (3)

src/plugins/jqplot.barRenderer.js

         if (this.rendererOptions.groups > 1) {
             this.breakOnNull = true;
             var l = this.data.length;
-            var skip = parseInt(l/this.rendererOptions.groups);
+            var skip = parseInt(l/this.rendererOptions.groups, 10);
             var count = 0;
             for (var i=skip; i<l; i+=skip) {
                 this.data.splice(i+count, 0, [null, null]);

src/plugins/jqplot.categoryAxisRenderer.js

             // adjust with blanks if we have groups
             if (this.groups > 1 && !this._grouped) {
                 var l = userTicks.length;
-                var skip = parseInt(l/this.groups);
+                var skip = parseInt(l/this.groups, 10);
                 var count = 0;
                 for (var i=skip; i<l; i+=skip) {
                     userTicks.splice(i+count, 0, ' ');
             // adjust with blanks if we have groups
             if (this.groups > 1 && !this._grouped) {
                 var l = labels.length;
-                var skip = parseInt(l/this.groups);
+                var skip = parseInt(l/this.groups, 10);
                 var count = 0;
                 for (var i=skip; i<l; i+=skip+1) {
                     labels[i] = ' ';
                 }
                 
                 // draw the group labels
-                var step = parseInt(this._ticks.length/this.groups);
+                var step = parseInt(this._ticks.length/this.groups, 10);
                 for (i=0; i<this._groupLabels.length; i++) {
                     var mid = 0;
                     var count = 0;
                 }
                 
                 // draw the group labels, position top here, do left after label position.
-                var step = parseInt(this._ticks.length/this.groups);
+                var step = parseInt(this._ticks.length/this.groups, 10);
                 for (i=0; i<this._groupLabels.length; i++) {
                     var mid = 0;
                     var count = 0;

src/plugins/jqplot.donutRenderer.js

                 for (var j=0; j<3; j++) {
                     // when darkening, lowest color component can be is 60.
                     newrgb[j] = (sum > 570) ?  newrgb[j] * 0.8 : newrgb[j] + 0.4 * (255 - newrgb[j]);
-                    newrgb[j] = parseInt(newrgb[j]);
+                    newrgb[j] = parseInt(newrgb[j], 10);
                 }
                 this.highlightColors.push('rgb('+newrgb[0]+','+newrgb[1]+','+newrgb[2]+')');
             }
         var r = this._radius = this._diameter/2;
         this._innerRadius = this._radius - this._thickness;
         var sa = this.startAngle / 180 * Math.PI;
-        this._center = [(cw - trans * offx)/2 + trans * offx, (ch - trans*offy)/2 + trans * offy]
+        this._center = [(cw - trans * offx)/2 + trans * offx, (ch - trans*offy)/2 + trans * offy];
         
         if (this.shadow) {
             var shadowColor = 'rgba(0,0,0,'+this.shadowAlpha+')';
             }
             if (sa) {
                 theta -= sa;
-                if (theta < 0) theta += 2*Math.PI;
-                else if (theta > 2*Math.PI) theta -= 2*Math.PI;
+                if (theta < 0) {
+                    theta += 2*Math.PI;
+                }
+                else if (theta > 2*Math.PI) {
+                    theta -= 2*Math.PI;
+                }
             }
             
             sm = s.sliceMargin/180*Math.PI;
         
         this.eventCanvas._elem.before(this.plugins.donutRenderer.highlightCanvas.createElement(this._gridPadding, 'jqplot-donutRenderer-highlight-canvas', this._plotDimensions));
         var hctx = this.plugins.donutRenderer.highlightCanvas.setContext();
-    };
+    }
     
     $.jqplot.preInitHooks.push(preInit);
     $.jqplot.postParseOptionsHooks.push(postParseOptions);