Here's what's happening in the new version, and why
it's failing in IE5.0.

On init, jquery reads in each axis selector -

jQuery.each(jQuery.macros.axis, ....

The axes look like this:

                parent: "a.parentNode",
                ancestors: jQuery.parents,
                parents: jQuery.parents,

Each axis is applied into the anonymous function
defined in jQuery.each(jQuery.macros.axis, ...
which pushes the axis into the stack.

The pseudo 'apply' for IE5.0 chokes when the
object for apply is a string, like in the first case.
The pseudo-code that is being applied:

fn.apply("a.parentNode", ["parent", "a.parentNode"])

This won't work - but this works (second axis):

fn.apply(jQuery.parents, ["ancestors", jQuery.parents])

I can't really make sense of what happens when the first
argument is a string. The documentation says
"apply(object, args) - apply() is a method of a function
which calls the function as though it is a method of the
object." So I don't really understand what's happening
when we pass in a string like this as the first argument.

I can't really get any further. I'm a bit in over my
head too. Maybe someone can help... Sorry!

Alistair






_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to