documentcloud/underscore — pull request #385 by jdalton (2011-12-01 19:11:01+00:00)
Title: underscore: Fix cross-browser object enumeration issues. [jddalton]

Fix cross-browser object enumeration issues.

This patch should address [the concerns](https://github.com/documentcloud/underscore/issues/376#issuecomment-2815538) brought up by @jashkenas in [issue #376](https://github.com/documentcloud/underscore/issues/376).

The gzipped filesize diff is around ~0.23 kb and the speed concerns have been addressed *(will add perf tests asap)* by optimizing other areas of underscore.js.

As [I mentioned](https://github.com/documentcloud/underscore/issues/376#issuecomment-2815649) in the original issue several libs attempt to tackle this issue and recently @kangax [tweeted](http://twitter.com/#!/kangax/status/141314165141803008):

> Got bitten by function's "prototype" being (incorrectly) enumerable in Opera <12 (copying static properties also overwrote instance ones) :)

Currently it passes the existing unit tests *(one throttle unit test fails in IE6, but it does on the official release too)*.

if this patch lands I will commit unit tests and further patches to speed up underscore.js methods by up to 50%.