Prototype.js can be humbling. Just when I think I've got a handle on how to read inside-out, I find something I've never seen before and can't get my head around.
I am chasing down a bug in my code which uses Element.classNames, so I wandered off in prototype.js to see how classNames worked. Contest: Explain clearly, with the fewest possible words, how this function works: Element.Methods = { // other methods appear here classNames: function(element) { return new Element.ClassNames(element); }, _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs