[jQuery] Re: Extending objects with internal objects

2009-09-06 Thread Steven Yang
look here http://docs.jquery.com/Utilities/jQuery.extend#deeptargetobject1objectN the first argument is the deep copy option. check it out On Mon, Sep 7, 2009 at 12:36 PM, roydukkey wrote: > Thanks, that worked. But how di

[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 objects? > > > $.fn.bestShow = functio

[jQuery] Re: Extending objects with internal objects

2009-09-06 Thread 月讀
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 objects? > > $.fn.bestShow = function(s) { >var d = { >width: 0, >height: 0, >order: "numeric", >