From: Dan Vanderkam Date: Thu, 16 Sep 2010 00:32:46 +0000 (-0400) Subject: remove extra logging X-Git-Tag: v1.0.0~651 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=2a07b0ad9869c9116c06fe1c9084da7fec0923bd;p=dygraphs.git remove extra logging --- diff --git a/tests/linear-regression.html b/tests/linear-regression.html index 22017d3..e3636c1 100644 --- a/tests/linear-regression.html +++ b/tests/linear-regression.html @@ -66,7 +66,9 @@ var b = (sum_y - a * sum_x) / num; coeffs[series] = [b, a]; - console.log("coeffs(" + series + "): [" + b + ", " + a + "]"); + if (console) { + console.log("coeffs(" + series + "): [" + b + ", " + a + "]"); + } g.updateOptions({}); // forces a redraw. } @@ -93,7 +95,6 @@ var p1 = g.toDomCoords(x1, y1); var p2 = g.toDomCoords(x2, y2); - console.log("(" + x1 + ", " + y1 + ") - (" + x2 + ", " + y2 + ")"); var color = g.getColors()[i - 1]; ctx.save(); ctx.strokeStyle = color;