From 4dce97e6db25bf11a1486d7bd52f4c4e78b877f6 Mon Sep 17 00:00:00 2001 From: "Moo Yeol, Lee (Prescott)" Date: Tue, 30 Dec 2014 02:25:05 +0900 Subject: [PATCH] browser: Fixed that no logs output on IE8/9 IE 8/9 reports console methods as objects when using the typeof operator. https://web.archive.org/web/20111123190115/http://whattheheadsaid.com/2011/04/internet-explorer-9s-problematic-console-object Closes #148. --- browser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/browser.js b/browser.js index ce6369f..702f217 100644 --- a/browser.js +++ b/browser.js @@ -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); }