On 3/2/06, Maninder, Singh <[EMAIL PROTECTED]> wrote:

> Like I mentioned earlier, what do you think about using the $$ function?

Troels' code would be faster in any case. It also has constant speed, whereas

> $$('table#main td.active').each(updateClassName(elm, newClass))

grows linear with the number of td.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to