From 2a07b0ad9869c9116c06fe1c9084da7fec0923bd Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Wed, 15 Sep 2010 20:32:46 -0400 Subject: [PATCH] remove extra logging --- tests/linear-regression.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.7.4