[jQuery] Re: Extending objects with internal objects

2009-09-06 Thread roydukkey
Thanks, that worked. But how did you know this, I can't find it documented anywhere? On Sep 6, 5:16 am, 月讀 wrote: > o = $.extend(true, {}, d, s}; > > On Sun, Sep 6, 2009 at 7:50 AM, roydukkey wrote: > > > Is there a better way to extend object with internal objec

[jQuery] Extending objects with internal objects

2009-09-05 Thread roydukkey
Is there a better way to extend object with internal objects? $.fn.bestShow = function(s) { var d = { width: 0, height: 0, order: "numeric", orderBy: "", animation: { type: "fade",

[jQuery] Re: Do events remain is memory when element is removed from DOM?

2009-09-01 Thread roydukkey
27;t, so it creates memory > leaks. It's probably good practice to unbind them. > > On Sep 1, 1:18 pm, roydukkey wrote: > > > Is it necessary to unbind events from elements before removing them. > > As like the following: > > > $("#list").find(&qu

[jQuery] Do events remain is memory when element is removed from DOM?

2009-09-01 Thread roydukkey
Is it necessary to unbind events from elements before removing them. As like the following: $("#list").find("li").unbind("hover").remove(); $("#list").html(<>); I'm building a plugin, and I want to know if the events listners will remain in memory, as code similar to the above will run every 5 s