search for: ennumerable

Displaying 1 result from an estimated 1 matches for "ennumerable".

Did you mean: enumerable
2006 Feb 07
2
Objects and Properties
...d].validate()) { isValid = false; } } /* ***************** */ The previous developer used a for in loop to go through all the fields in his array and run the validate method on each one... The problem is there is a ton of extra methods in the object because prototype adds all that ennumerable goodness to new Array objects. I tried to go through and delete everything after making the array: fields = new Array(); for(var i in this.fields) { delete this.fields[i]; } which works in IE but not Firefox, plus it seems like it''s not very elegant. To make matters worse, for the tim...