On 8/21/07, Bob Ippolito <[EMAIL PROTECTED]> wrote:
> Some of these built-in methods and functions aren't actual JavaScript
> functions and aren't compatible with Function.prototype.apply, so
> using MochiKit directly on them may not work. I think there's a
> workaround for it in MochiKIt that makes it work in Firefox and maybe
> Safari but I guess that workaround doesn't work properly in IE6.
They are proper functions in Firefox and I believe also in Safari.
This is a known problem in IE which doesn't expose the proper Function
interface on it's built-ins.
There *is* a workaround in MochiKit, applied in Base.bind by wrapping
the function in Base._wrapDumbFunction. Maybe the condition that is
used to check if that workaround should be applied needs revision.
Currently it's
if (typeof(func) == "function" && typeof(func.apply) == "undefined") {
I don't have time atm or the proper debugging tools to test this in
IE, but if there are no volunteers I'll have a look sometime.
Arnar
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---