Jeff Rankin wrote:
        var widgets = getElementsByClassName(document, "ol", "tree");

Couldn't you use the selectors support. So the above would be:

widgets = $$('ol.tree');

If you wanted to limit it to just a certain subset of the document to search you could do:

widgets = $$('#my_section ol.tree');

The implementation of $$ seems quite efficient and I have yet to have performance problems.

Eric

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to