On Fri, Mar 27, 2009 at 8:57 AM, 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.
So, do I infer from this that IE (at least some version(s)) use a reference counting GC for Javascript? Yuck. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---