On 8/17/07, kangax <[EMAIL PROTECTED]> wrote:
>
>
> Writing to attributes is fine but for custom properties I ended up
> with this little helper (I know the name is idiotic but I had no time
> to think of a good one):
>
> Element.addMethods({
> __extend: function(element, hash) {
> return Object.extend($(element), hash)
> }
> });
It's nice to hear about how all of you solved the problem of collection
attribute assignment, but the variety of solutions shows that this is very
app-specific (IMO). I've never needed this myself; and if I have, it would
only be in one or two places, which hardly justifies its inclusion in the
core framework.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---