How can I get rid of these 'console.log is not defined' errors in IE?
<p>...without removing the calls to <code>console.log</code> obviously. It doesn't need to log or do anything, I just want it to not show an error. I'm trying</p>

<pre><code>if (!window.console) {

    window.console = {

        log: function() {},

        error: function() {},

        warn: function() {}

    }

}
</code></pre>

<p>But that doesn't seem to fix it.</p>
