> Is this (the object-wrapped this) the intended behaviour? If so the
> example in the callback argument in
http://docs.jquery.com/Utilities/jQuery.each#objectcallback> is incorrect as it states "this; // == valueOfElement"
I don't know if incorrect or not, but blurry for sure.
I updated that comment.
> The same problem applies for jQuery.map, but i'd imagine it's because
> it's implemented with each.
Updated the respective comment for map and grep, but changed the
unclear 'unmapped' for '== window'.
Note the same doesn't apply to map (and grep) because they don't pass
the element as scope of the function.
And.. map isn't implemented with each, all these core functions avoid
using each to maximize perfomance.
Cheers
--
Ariel Flesler
http://flesler.blogspot.com/