Skip to content

Commit

Permalink
Merge pull request #166 from mooyoul/ie8
Browse files Browse the repository at this point in the history
browser: Fixed that no logs output on IE8/9
  • Loading branch information
TooTallNate committed Dec 29, 2014
2 parents 953162b + 6af0b4d commit 3a285be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ function formatArgs() {
function log() {
// This hackery is required for IE8,
// where the `console.log` function doesn't have 'apply'
return 'object' == typeof console
&& 'function' == typeof console.log
return console
&& console.log
&& Function.prototype.apply.call(console.log, console, arguments);
}

Expand Down

0 comments on commit 3a285be

Please sign in to comment.