Well, it's not too hard to break that circular referencing by nullifying the variable when you're done with it. Of course, that should have been in the example too.
/L On 27 Mar, 13:57, RobG <rg...@iinet.net.au> wrote: > On Mar 27, 10:02 pm, Lapis <petter.env...@gmail.com> wrote: > > > I do like this sometimes, when the scoping is ok: > > > var submitter = $('submitter'); > > if (submitter) { > > submitter.observe('click', function (event) { > > // use submitter here > > }); > > > }; > > > It is great, time-wise. > > And exploits IE's memory leak due to the closure with circular > reference. Don't do it. > > -- > Rob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---