@JDD: Sorry, missed your note in the melee.

> T.J. $$W and $$ are the same thing (just named $$W so that we know we
> are talking about the new implementation).

Depending on how $$W is implemented, I may pretty strongly want
Prototype's excellent selectors but without automatic element
wrapping.  Let's see how things play out...

-- T.J. :-)

On Aug 22, 3:33 pm, John-David Dalton <[EMAIL PROTECTED]>
wrote:
> T.J. $$W and $$ are the same thing (just named $$W so that we know we
> are talking about the new implementation).
>
> I kind of like the idea of lazy wrapping.
> That would speed up the initial selector while offering a one time hit
> later on,
> on only the elements chosen (which is usually all of them being
> iterated over by
> "each" or "include") but for those cases were it iterates against
> "find" it would help because
> the un-iterated items wont be wrapped. Wrapping is by no means as slow
> as extending the elements manually (ala IE), you create an instance
> and assign it the passed element so the speed hit is still minimal.
> Having to iterate over a list of matches elements is just another hit
> to performance.
> By using lazy wrapping we can avoid that and keep it as streamline and
> as few steps between the native selector methods as possible.
>
> $$(css).each(...);
> $$(css).item(2).addClassName('awesome');
> The $$(...)._each would iterate over the internal list
> so it wouldn’t need to call item(i) during its iterations.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" 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/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to