anutron/clientcide-dbug — Issue #2: Wrapping dbug gives errors in IE
Author: tarraq
Created: 2012-01-11 08:15:13+00:00
State: open

Hello,

I'm wrapping dbug in a Log static Mootools class. The reason for this is that in some cases the logs should go to the backend as well as the console, for a complex intranet application.

Each method of dbug (and firebug console) is duplicated and "forwarded" like this to allow N arguments:

Log.info = function() {
dbug.info.apply(this, arguments);
}

It works fine in FireFox, but in IE9 it gives the ever annoying "Object doesn't support property or method 'apply'".
Just to make sure I looked up the specs for apply in IE, and it should be supported in near all versions.

While I know that IE doesn't support all the functionality of FireBug, at least it works with normal logging for simple debugging.

Any idea what's going on?

Cheers,
Tarraq