On 7/21/06, Peter Michaux <[EMAIL PROTECTED]> wrote:
Hi,
I have been spending a lot of time reading Prototype.js. Because there
are no comments, I don't understand the rational for why it is doing a
few things. Two things are in Element.update
update: function(element, html) {
$(element).innerHTML = html.stripScripts();
setTimeout(function() {html.evalScripts()}, 10);
},
Why strip the scripts before inserting? Is this only for NS6 browser support?
Why wait 10 ms before evaluating the scripts?
Thanks,
Peter
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs