From 19622406da911244d88ca15a073c185d0d83612d Mon Sep 17 00:00:00 2001 From: Jeff Wagner Date: Tue, 24 Jan 2012 12:19:52 -0800 Subject: [PATCH 1/2] define console for IE9 when debugging tools is not opened --- web/compatibility.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/compatibility.js b/web/compatibility.js index 26405ad8f..7addbe3e2 100644 --- a/web/compatibility.js +++ b/web/compatibility.js @@ -224,3 +224,10 @@ } }); })(); + +//IE9 console +(function checkConsoleCompatibility() { + if (typeof console == "undefined") { + console = {log: function() {}}; + } +})(); From 08f8aed5215d4ba861d4675f91aabb9bffa5997f Mon Sep 17 00:00:00 2001 From: Jeff Wagner Date: Tue, 24 Jan 2012 14:19:41 -0800 Subject: [PATCH 2/2] define console for IE9; updated to fix lint errors and comment --- web/compatibility.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/compatibility.js b/web/compatibility.js index 7addbe3e2..b22153516 100644 --- a/web/compatibility.js +++ b/web/compatibility.js @@ -225,9 +225,9 @@ }); })(); -//IE9 console +// Check console compatability (function checkConsoleCompatibility() { - if (typeof console == "undefined") { + if (typeof console == 'undefined') { console = {log: function() {}}; } })();