Wednesday, 12 September 2012

Internet Explorer Console Shim

Chrome is my weapon of choice when developing rich CoffeeScript and apps. This means shaking out all those little differences with towards the end of a project, and learning to live with all sorts of foible.

Turns out that that IE doesn't always play well with console. In particular, on IE9 calling console.debug fails with

Object doesn't support property or method 'debug'

Since console.debug is deprecated, I took this opportunity to grep and replace console.debug calls with console.log but its wise to remember to add the for troublesome older versions.

No comments:

Post a Comment