From dc00673b7c056392409139dba451305a828a230d Mon Sep 17 00:00:00 2001 From: bmcustodio Date: Wed, 3 Oct 2012 22:07:27 +0100 Subject: [PATCH] Fix `console` stubbing method in oldIE Expose `console` object to global scope in IE6 and IE7 Reference: gh-1229 --- js/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/plugins.js b/js/plugins.js index 2e90210fb6..3cfc65235c 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -8,7 +8,7 @@ 'timeStamp', 'trace', 'warn' ]; var length = methods.length; - var console = window.console || {}; + var console = (window.console = window.console || {}); while (length--) { // Only stub undefined methods.