Remove output array after joining.
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 11 Aug 2010 17:18:33 +0000 (11:18 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 11 Aug 2010 21:05:23 +0000 (15:05 -0600)
No need to carry around this (potentially) large data structure after we
are done with it.

horde/js/hordetree.js

index 141125a..54a641c 100644 (file)
@@ -41,6 +41,8 @@ var Horde_Tree = Class.create({
         this.rootNodes.each(this.buildTree.bind(this));
 
         $(this.opts.target).update(this.output.join(''));
+        delete this.output;
+
         this._correctWidthForScrollbar();
 
         // If using alternating row shading, work out correct shade.