[Prototype-core] Hash constructor

2007-02-08 Thread Alexander Presber
Hello everyone, I have a little trouble porting stuff to from prototype 1.4 to 1.5. Some has to do with ticket #3592, where the results of filters on enumerables are discussed. As long as this patch is not accepted I could just patch the behaviour for myself, overloading Enumerables reject

[Prototype-core] Re: Hash constructor

2007-02-08 Thread Alexander Presber
[Array, Hash, Range]).each(function(c){Object.extend( c.prototype, { reject: function() { /* ... */ }, findAll: function() { /* ... */ } })}); Cheers, Alex > > I think this is the best band-aid until this problem gets permanently > fixed. > > On Feb 8, 6:26 pm, Alexander P

[Prototype-core] Re: Hash constructor

2007-02-08 Thread Alexander Presber
> With prototype-based inheritance they all point to > the same copy. It's a big win for memory usage. Read this interview > with Dean Edwards: http://snook.ca/archives/writing/an_interview_wi/ I see your point. But this is not exactly what happens here. We do indeed save memory by putting the