Open mzedeler opened 11 years ago
I'd go for the second solution. Adding a configuration option [defaulting to console.log, if console.log() exists and nothing is provided by the user] to pass the debug handler seems a safer way to handle this problem.
Ok. I'll get to work on it.
(Unless you want to, of course.)
I'm a little busy a.t.m., any help is greatly appreciated. But don't worry, if you don't have time to write the patch, I think I can push the change (plus another small feature someone suggested via email) in the next few days.
Thank you for spotting the issue
I won't be able to fix it until some time this wednesday. I'll just check the issue here by then to see if you have a fix ready.
This snippet:
Seems to get more in the way than actually helping because Internet Explorer doesn't have a
console
object, so usingdebug
in atry
-catch
block will just throw away what really went wrong and replace the actual error with something else.I have two proposals to resolve this:
I can implement both of the above, so just let me know which one and I'll do it.