search for: _addelement

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

Did you mean: addelement
2006 Jan 23
3
prototype.js: enumerable mixin for hash broken
...t; The potential beauty of the Hash reject() method is obvious, but the returned value (b) is not a Hash anymore! It is an Array, very close to the intended Hash, but not a Hash. I suppose the solution would be, to overload some more functions for the Enumerable mixin, so that the would be an _addElement() method for all Classes, that wish to mixin Enumerable and the reject method (as other Enumerable methods) would call that as opposed to always creating an Array internally. Any ideas or comments? Sincerely yours Alexander Presber