[dojo-contributors] Watchables, data bindings, and get/set

sam foster potatosculptor at gmail.com
Tue Mar 9 04:36:05 EST 2010

+1 also from me. I frequently end up snagging _Widget's attr method,
or implementing my own, to create a getter/setter mechanism for
non-widget objects. I like the extension point it gives you -
overloading the getter or setter in subclasses, as well as the
abstraction away from a attribute name == object property.


On Tue, Mar 9, 2010 at 3:39 AM, Kris Zyp <kzyp at dojotoolkit.org> wrote:
> Another aspect of this that I would like to propose: I was thinking that
> it might make sense to a create a new module/class in dojo core named
> dojo.Stateful that implemented the get/set/watch trio and moving the
> getter/setter from logic from dijit_Widget (defining functions like
> _getNameAttr and _setNameAttr for the getter/setter handlers) into
> dojo.Stateful.

More information about the dojo-contributors mailing list