Commits

cleonello  committed 164d945

cleaned up some lint.

  • Participants
  • Parent commits 59b5bd9

Comments (0)

Files changed (3)

File src/jqplot.lineRenderer.js

         }
 
         function dxx(x1, x0) {
-            if (x1 - x0 == 0) return Math.pow(10,10);
-            else return x1 - x0;
+            if (x1 - x0 == 0) {
+                return Math.pow(10,10);
+            }
+            else {
+                return x1 - x0;
+            }
         }
 
         var A, B, C, D;
         // don't do smoothing or bands on broken lines.
         if (hasNull) {
             this.renderer.smooth = false;
-            if (this._type === 'liine') bands.show = false;
+            if (this._type === 'liine') {
+                bands.show = false;
+            }
         }
 
         if (this._type === 'line' && bands.show) {
         // don't do smoothing or bands on broken lines.
         if (hasNull) {
             this.renderer.smooth = false;
-            if (this._type === 'line') bands.show = false;
+            if (this._type === 'line') {
+                bands.show = false;
+            }
         }
 
         if (this._type === 'line' && bands.show) {
         plot.plugins.lineRenderer.highlightedSeriesIndex = sidx;
         var opts = {fillStyle: s.highlightColor};
         if (s.type === 'line' && s.renderer.bands.show) {
-            opts.fill = true,
+            opts.fill = true;
             opts.closePath = true;
         }
         s.renderer.shapeRenderer.draw(canvas._ctx, points, opts);

File src/jqplot.toImage.js

 
     // Returns font style as abbreviation for "font" property.
     $.fn.jqplotGetComputedFontStyle = function() {
-        var css = window.getComputedStyle ?  window.getComputedStyle(this[0]) : this[0].currentStyle;;
-        var attrs = css['font-style'] 
-            ? ['font-style', 'font-weight', 'font-size', 'font-family']
-            : ['fontStyle', 'fontWeight', 'fontSize', 'fontFamily'];
+        var css = window.getComputedStyle ?  window.getComputedStyle(this[0]) : this[0].currentStyle;
+        var attrs = css['font-style'] ? ['font-style', 'font-weight', 'font-size', 'font-family'] : ['fontStyle', 'fontWeight', 'fontSize', 'fontFamily'];
         var style = [];
 
         for (var i=0 ; i < attrs.length; ++i) {
                 // console.log(this.tagName);
                 // console.log(temptop, templeft, tempright, tempbottom);
                 // console.log(w, h, transx, transy);
-            })
+            });
         }
         // console.log("chart: height: %s, width: %s, left: %s, top: %s, transx: %s, transy: %s", h, w, plotleft, plottop, transx, transy);
 
         if (imgCanvas) {
             return imgCanvas.toDataURL("image/png");
         }
-        else return null;
-    }
+        else {
+            return null;
+        }
+    };
 
     // create an <img> element and return it.
     // Should work on canvas supporting browsers.

File src/jsl.conf

 +process jqplot.sprintf.js
 +process jqplot.tableLegendRenderer.js
 +process jqplot.themeEngine.js
++process jqplot.toImage.js
 +process jquery.jqplot.js
 +process jsdate.js
 +process plugins/*.js