Right. But I never knew that it just stores arguments in the very same
this.options property :)

Thanks for the tip anyway.

On Oct 22, 4:23 pm, "Richard D. Worth" <rdwo...@gmail.com> wrote:
> That's all the base does. In a plugin implementation you'll do a lot more.
> For example, see
>
> http://jquery-ui.googlecode.com/svn/trunk/ui/jquery.ui.dialog.js
>
> So my response was assuming you were asking why inside a plugin
> implementation you sometimes see the option being set directly and sometimes
> see it being set through _setData. And the difference is whether you want
> all these side-effects that are added to the plugin's own _setData.
>
> - Richard
>
> On Thu, Oct 22, 2009 at 6:51 AM, jayarjo <jaya...@gmail.com> wrote:
>
> > Thank you guys for you responses. However neither of them satisfied
> > me, so I just looked into ui.core.js itself. Here is an excerpt:
>
> > ...
> > _getData: function(key) {
> >        return this.options[key];
> > },
> > _setData: function(key, value) {
> >        this.options[key] = value;
> >        ...
> > },
> > ...
>
> > In other words they just store and retrieve values to and from
> > this.options property. Very flat in fact. Hm...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery-ui@googlegroups.com
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to