On Mar 15, 9:39 am, "Tobie Langel" <[EMAIL PROTECTED]> wrote:
> I'd favor writeAttribute to be consistant with readAttribute... and
> setStyle (which is not pluralized).
>
The issue here is that each attribute is a separate unit, whereas you
could argue that each of the properties you pass to setStyle is just
part of the overall "style" of the element.
Anyway, I'm not about to get us on a semantics tangent. But if we
call it writeAttribute, people will expect it to behave like
setAttribute (the way readAttribute behaves like getAttribute). So
let's write it so that you can pass in either two string arguments or
one hash of attributes.
Cheers,
Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---