Skip to content

Commit

Permalink
Merge pull request #234 from wimme/patch-2
Browse files Browse the repository at this point in the history
Fix in Dygraph.log for IE8
  • Loading branch information
danvk committed Mar 7, 2013
2 parents 870190b + 94ee064 commit 019862d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dygraph-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 019862d

Please sign in to comment.