This project is archived and is in readonly mode.

#629 ✓resolved

Hash.extend without properties bug

Reported by Sencerd | March 26th, 2009 @ 02:41 PM | in 2.0 (closed)

If you use hash.extend without passing in properties, it will extend the hash with everything in the window. I believe the logical behaviour should be that it does nothing.

To reproduce:

var test = $H().extend(); alert(test.getLength());

You should get 0, as the hash is empty, what you actually get is a hash that contains everything your window contains, so it returns several hundred.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket