Had a nasty memory leak that was seriously slowing down the browser and eating up a couple megabytes every reload. I was using:

$$('.dyntable').each(function(elm) { new DynTable(elm) });

To set up my behavior, but discovered that just running:

$$('.dyntable');

Caused the memory leak all by itself.

The fix I found for it was to change Element.extend to a noop.

Element.extend = function(element) {
  return element;
}

Apparently IE has that leak where it can't recognize these enhanced DOM elements as ready for garbage collection because of this enhancement.

FYI: this was on latest IE 6 on WinXP.

-joel
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to