From 19622406da911244d88ca15a073c185d0d83612d Mon Sep 17 00:00:00 2001 From: Jeff Wagner Date: Tue, 24 Jan 2012 12:19:52 -0800 Subject: [PATCH] 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() {}}; + } +})();