In IE dispose can cause a memory leak:
http://www.slideshare.net/tifftiff/memory-leaks-in-ie
http://github.com/mootools/mootools-core/blob/master/Source/Element/Element.js#L585
MooTools dispose only removes the element from the DOM, but if it's
somewhere in a variable, it can cause 'circular references'
So only if you're doing something like this:
el.dispose();
// something else...
el.inject('myOtherEl');
you can use dispose, if you just want to remove the element from the
DOM, use destroy.
On 9 jul, 09:12, Andrea Dessì <[email protected]> wrote:
> I think there's a DOM object for each page.
> So if you change page you'll get a new DOM.
>
> right?
> --
> Andrea Dessì
>
> Email: [email protected]
> Skype: nkjoep
> Blog:http://www.stealthefish.com/
> LinkedIn:http://www.linkedin.com/in/andreadessi
> Jabber: [email protected]
> Twitter:http://www.twitter.com/NKjoep
>
>
>
> On Fri, Jul 9, 2010 at 08:57, stratboy <[email protected]> wrote:
> > And just to go further: does the change of a web page (page1.html >
> > [click link] > page2.html) cause the destruction all of the event
> > listeners that were created in the first page? Do ALL the listeners
> > (read: the listeners to ALL the type of events) created in page1 get
> > destroied when I navigate to page2?- Tekst uit oorspronkelijk bericht niet
> > weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -