From: Robert Konigsberg Date: Wed, 27 Mar 2013 14:15:44 +0000 (-0400) Subject: Merge branch 'master' of https://github.com/danvk/dygraphs into i382 X-Git-Tag: v1.0.0~27^2~3^2~4 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=c3491213337a0241107430ad15038c2f18fa5789;hp=3be75fa540ccf036bd41dfd3c75df5e7633f4863;p=dygraphs.git Merge branch 'master' of https://github.com/danvk/dygraphs into i382 --- diff --git a/dygraph-utils.js b/dygraph-utils.js index 5bd58d7..9079aaf 100644 --- a/dygraph-utils.js +++ b/dygraph-utils.js @@ -79,7 +79,7 @@ Dygraph.log = function(severity, message) { // In older versions of Firefox, only console.log is defined. var console = window.console; var log = function(console, method, msg) { - if (method) { + if (method && typeof(method) == 'function') { method.call(console, msg); } else { console.log(msg);