Mike,
Yes, that type of class is quite helpful. Here is a concise implementation
of your idea: http://gist.github.com/158849
It could be improved a lot. For example, you could alter
Element.addMethods() to also add methods to the NodeList object.
This type of class is probably appropriate for a
If you're interested, I've actually built a "bridge" library called GenevaJS
that does exactly what you're looking for.
Keep in mind, it's not yet finished, but the core concept you're looking
for, things like:
$('collection').addClassName('classname');
Is there.
Yes... thats a single $... Gen
To add a little more information... GenevaJS dynamically redefines all of
prototype's Element methods to behave like Enumerable methods and comes with
about 80% of jQuery's methods...
On Thu, Jul 30, 2009 at 3:04 PM, Rick Waldron wrote:
> If you're interested, I've actually built a "bridge" lib