On 9/7/07, Nicolás Sanguinetti <[EMAIL PROTECTED]> wrote:
>
>
> Quick question: why does Element.wrap return the wrapped element
> instead of the wrapper?


Consistency. Element.Mehods methods always return self to allow for
chaining.

I've yet to find somewhere where I use wrap that I don't do .wrap(...).up()


I also use parentNode a lot, but consistency here is first priority.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
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