Ken, wouldn't Enumerable.addMethods be just a wrapper around
Class.addMethods? Like Class.addMethods(Enumerable, methods)

On Jul 3, 7:31 am, "Ken Snyder" <[EMAIL PROTECTED]> wrote:
> Yes, those escapeHTML fixes are what I was thinking.
>
> I'm excited to see Event delegation!
>
> Also, I wanted to suggest some more ways to extend and customize Prototype:
>
> *Event.addMethods* to allow adding methods to Event instances 
> (http://prototype.lighthouseapp.com/projects/8886-prototype/tickets/203)
>
> *Class.addMethods* to allow adding methods to every class instance for
> classes created with Class.create() (http://dev.rubyonrails.org/ticket/10089
> )
>
> *Enumerable.addMethods* as a quick way to add methods to all enumerables:
>
> Enumerable.addMethods = function(methods) {
>   Hash.addMethods(methods);
>   ObjectRange.addMethods(methods);
>   Object.extend(Ajax.Responders, methods);
>   Object.extend(Array.prototype, methods);
>   Element.ClassNames.addMethods(methods); // i think this is deprecated now
>
> };
>
> - Ken
--~--~---------~--~----~------------~-------~--~----~
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