On 09/03/2007, at 8:50 PM, Brice Burgess wrote: > Perhaps I'm way off in protecting the expando ... and I too would like > to hear some feedback ;) > > ~ Brice
I have studied your code closely now and I think I understand it better. You are saying that it's important that the property I'm attaching to the list items (expando) is a primitive (integer). Apparently, the return value of setTimeout is already an integer, according to this: http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/ setTimeout.asp (sorry if that link has a line break in it once received). Does this mean my existing code avoids memory leaks as is? On another note, would it be better if my "over" and "out" functions were attached to the jQuery object, and defined outside of the plugin, eg: $.sfOut = function(){ ... }; instead of: var out = function(){ ... }; Would that be better? If so, why? Would it mean that the functions only occupy one place in the memory instead of once per instance of Superfish menu? Joel. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/