Merge branch 'master' of https://github.com/danvk/dygraphs into i382
authorRobert Konigsberg <konigsberg@google.com>
Wed, 27 Mar 2013 14:15:44 +0000 (10:15 -0400)
committerRobert Konigsberg <konigsberg@google.com>
Wed, 27 Mar 2013 14:15:44 +0000 (10:15 -0400)
dygraph-utils.js

index 5bd58d7..9079aaf 100644 (file)
@@ -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);