Fixes 2127.
commit626aae40318e042b15cfb1dd7827b4e3dcde1cd4
authorOlmo Maldonado <olmo.maldonado@gmail.com>
Sat, 10 Dec 2011 19:14:24 +0000 (10 13:14 -0600)
committerOlmo Maldonado <olmo.maldonado@gmail.com>
Mon, 9 Jan 2012 16:01:30 +0000 (9 10:01 -0600)
treef018317aae81c524a3653796a688b2189ed79f87
parentbe7204ab39ed776b90fcd88bae747d2afbeb84e6
Fixes 2127.

Used sIEve to track leaks in Element.js. @gd0t claims that the problem
is in Array.flatten, but I coudn't reproduce. I did find, however, that
we had various onload/unload leaks in Element.js. Most where feature
feature detects that were not nulled after usage.

Tip: Use Function.attempt. Looks like Node references in closures are
collected at the end of the closure. See diff.

UNTESTED (next commit).
Source/Element/Element.js
Specs/1.4client/Element/Element.adopt.html [new file with mode: 0644]