[Prototype-core] Re: Alternate syntax for inheritance

2007-08-25 Thread Ben Newman
Just to keep things concrete, here's my take on how the syntax could be implemented: http://pastie.textmate.org/90947 This way, inheritance will still work for methods added to 'this' inside the closure, and Class.extend can be used elsewhere in the library. Questions: * Can this feature be le

[Prototype-core] Suggestion: Form#focusFirstElement accepting an optional selector

2007-08-25 Thread Nicolás Sanguinetti
I've been using http://pastie.caboo.se/91025 so when a user has errors in the form, the focused element is the first erroneous field (and when there are no errors, it behaves "normally", focusing the first element). If the core team thinks it's useful I'll write a patch with proper tests :) Rega