$el is just a empty DIV with a background-image. That sounds plausible. Later tonight I'll get the test case up an running, and see what happens deleting prevObject.
Hope this thread isn't flamed before I get back. On Sep 28, 11:46 pm, Dave Methvin <[email protected]> wrote: > > var $clone = $el.clone().addClass('preload') > > .css({ backgroundImage: 'url('+curImg+')' }) > > .insertAfter( $el ); > > $el was subsequently remove()d, the remaining object put through a > > custom discard function (one attempt at a fix) and then nulled. > > OK, here's my guess. Since the .clone() does a pushStack and selects > the clones, there's a reference to $el hiding in the $clone.prevObject > property so it won't be garbage-collected even if $el is nulled later. > Is $el complex? From the replacement code it sounds like it was not > much more than <div class="bg" /> and that shouldn't be 12MB. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
