Skip to content

Commit

Permalink
browser: Fixed that no logs output on IE8/9
Browse files Browse the repository at this point in the history
  • Loading branch information
mooyoul committed Dec 29, 2014
1 parent 953162b commit 4dce97e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function log() {
// where the `console.log` function doesn't have 'apply'
return 'object' == typeof console
&& 'function' == typeof console.log
|| 'object' == typeof console.log // IE 8-9 reports console methods as objects when using the typeof operator.
&& Function.prototype.apply.call(console.log, console, arguments);
}

Expand Down

0 comments on commit 4dce97e

Please sign in to comment.