backbone.debug icon indicating copy to clipboard operation
backbone.debug copied to clipboard

Be IE-friendly by checking for console.log

Open eburi opened this issue 11 years ago • 1 comments

Hi, I like your script a lot. But since I have to support IE as well, how about adding something like this to give a dummy console.log function in case there is none:

window.console ?= 
  log: ->

Br

eburi avatar Mar 06 '13 21:03 eburi

This never even crossed my mind initially since I always have this manually handled in my projects, but I agree that we should be protecting it.

Eventually I could see possibly even doing more in the way of supporting IE, but in the short term, this seems like a reasonable starting point to see if we want to go any further.

I will get this in asap.

aterris avatar Apr 09 '13 18:04 aterris