From: Dan Vanderkam Date: Mon, 4 Oct 2010 21:47:52 +0000 (-0400) Subject: linear regression tests work without console defined X-Git-Tag: v1.0.0~643 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=4df1af70fa4319dfc6823f3793c6962fac28c9ed;p=dygraphs.git linear regression tests work without console defined --- diff --git a/tests/linear-regression-addseries.html b/tests/linear-regression-addseries.html index 4445f47..183189d 100644 --- a/tests/linear-regression-addseries.html +++ b/tests/linear-regression-addseries.html @@ -73,7 +73,7 @@ var b = (sum_y - a * sum_x) / num; coeffs[series] = [b, a]; - if (console) { + if (typeof(console) != 'undefined') { console.log("coeffs(" + series + "): [" + b + ", " + a + "]"); } diff --git a/tests/linear-regression.html b/tests/linear-regression.html index 9f18d58..03c95c2 100644 --- a/tests/linear-regression.html +++ b/tests/linear-regression.html @@ -67,7 +67,7 @@ var b = (sum_y - a * sum_x) / num; coeffs[series] = [b, a]; - if (console) { + if (typeof(console) != 'undefined') { console.log("coeffs(" + series + "): [" + b + ", " + a + "]"); }