AFAIK the setTimeout makes sure that the eval() is executed in the window-global context, and not the local execution context of the method it happens to be in. -Thomas Am 21.07.2006 um 16:19 schrieb Ryan Gahl: scripts inserted via innerHTML are not executed, so this ensures any scripts actually get executed... does anyone else have the scientific answer for the timeOut? prevent UI blocking as much as possible? There are potential benefits, but it's probably not 100% necessary. -- Thomas Fuchs wollzelle questentier on AIM madrobby on irc.freenode.net http://www.fluxiom.com :: online digital asset management http://script.aculo.us :: Web 2.0 _javascript_ http://mir.aculo.us :: Where no web developer has gone before |
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs