X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-utils.js;h=9079aaf35429b9b06cf80ed31f28814ffc52355e;hb=c3491213337a0241107430ad15038c2f18fa5789;hp=5bd58d7c852f08d62ee0766854030a8e298b4cbe;hpb=aeca29acb29d62c57663786dd8b9eba7fcc959a6;p=dygraphs.git 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);