On Friday 21 July 2006 21:27, Peter Michaux wrote: > It is easy to write native JavaScript versions of code written using > the Prototype.js enumerable methods. I've given a few examples. It is > obvious that the native versions are much more efficient and have > other benefits. Why not just write native from the start?
If I'm not mistaken the enumerable methods exist partly to make the job of the Rails JavaScriptGenerator easier (although the Prototype.js implementation of them predates the JavaScriptGenerator). The JavaScriptGenerator translates a subset of Ruby into JavaScript so that RJS templates can be written entirely in Ruby. Michael -- Michael Schuerig mailto:[EMAIL PROTECTED] http://www.schuerig.de/michael/ _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs