On Wed, Oct 21, 2009 at 5:26 AM, jayarjo <jaya...@gmail.com> wrote:

>
> I'm trying to get my mind around getter/setter functionality. I
> probably do not understand their purpose properly.
>
> What is the exact difference between setting a property as:
> this.someProperty = someValue; and setting it as: this._setData
> ('someProperty', someValue); What's the point in other words?
>

this.someProperty = someValue;

will simply set the internal property to have the new value, whereas

this._setData('someProperty', someValue);

will take care of consistency and refresh type issues, trigger events,
whatever needs to happen when that property is set, whether externally or
internally.

- Richard

--~--~---------~--~----~------------~-------~--~----~
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