Deep Copy of UI Widget Options

64 views
Skip to first unread message

kazooka

unread,
Feb 20, 2009, 7:11:01 PM2/20/09
to jQuery UI Development
Had a discussion about widget options in jquery-ui group discussion...

http://groups.google.com/group/jquery-ui/browse_thread/thread/36ac5cc5e1afa9c1/3f3205196ee4988c?hl=en&lnk=gst&q=deep+copy#3f3205196ee4988c

... and thought I'd get some opinions here. So... please opine.

Is there a strong argument for not allowing a deep copy of widget
options where the widget constructor is created (~ line 282 in
ui.core.js for version 1.6rc6)?

It seems that a shallow copy limits the structure of a widget's
options. I'm creating a widget and a complex structure for options is
pretty convenient.

Paul Bakaus

unread,
Feb 21, 2009, 4:20:45 AM2/21/09
to jquery...@googlegroups.com

I'm with you on this, but we need to make sure it doesn't have a performance impact.
Should be quite small though.
 






--
Paul Bakaus
UI Architect
--
http://paulbakaus.com
http://www.linkedin.com/in/paulbakaus

Scott González

unread,
Mar 18, 2009, 10:41:43 PM3/18/09
to jquery...@googlegroups.com

Scott González

unread,
Mar 27, 2009, 8:07:22 PM3/27/09
to jQuery UI Development
I just committed this change, it will be available in 1.8.

On Mar 18, 10:41 pm, Scott González <scott.gonza...@gmail.com> wrote:
> Ticket:http://dev.jqueryui.com/ticket/4366
>
> On Fri, Feb 20, 2009 at 8:11 PM, kazooka <abdrew.my...@gmail.com> wrote:
>
> > Had a discussion about widget options in jquery-ui group discussion...
>
> >http://groups.google.com/group/jquery-ui/browse_thread/thread/36ac5cc...
Reply all
Reply to author
Forward
0 new messages