Skip to content

Commit

Permalink
Merge pull request #12 from binhqx/patch-4
Browse files Browse the repository at this point in the history
Handle missing console.debug() function in Internet Explorer 10
  • Loading branch information
pimterry committed May 1, 2013
2 parents 22405d4 + ff1137e commit 355ede6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/loglevel.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
if (typeof console === "undefined") {
return noop;
} else if (typeof console[methodName] === "undefined") {
return console.log || noop;
return boundToConsole(console, 'log') || noop;
} else {
return boundToConsole(console, methodName);
}
Expand Down Expand Up @@ -99,4 +99,4 @@
self.setLevel(self.levels.SILENT);
}
return self;
}));
}));

0 comments on commit 355ede6

Please # to comment.