Technically, as per the _javascript_ spec (that is, the ECMAScript spec), the for/in loop iterates over the properties of an object, _not_ the items of an array. As Prototype extends the Array prototype with all sorts of useful functionality, you'll get these additional properties because of the for/in loop used incorrectly. See the other replies for the Prototypish way of doing loops. -Thomas Am 21.06.2006 um 00:21 schrieb Keith Davis:
|
_______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
