> It creates a new class/object representing the class names. The class
> is called Element.ClassNames and it is extended by Enumerable. That
> means you can iterate through the element's class names. Pretty cool.

"Extended by Enumerable".  Thanks.  Now I know where to look.

A good answer usually raises other good questions.  It seems reasonable to
post those questions back here, though I am doing so only to share my
thoughts.  I hope to dig up the answers myself.

1 - Is every object that is extended by Enumerable going to have iterable
class names?

2 - Just how much "baggage" is too much in JavaScript?  Prototype is adding
*lots* of extra stuff to everything it touches.  When does it become a
problem? Will memory consumption become an issue, will CPU consumption go
through the roof scanning hundreds of methods and properties on every
object?




_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to