backbone.debug
backbone.debug copied to clipboard
Be IE-friendly by checking for console.log
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
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.