Ticket #6413 (new enhancement)
dojo.data with getters/setters
| Reported by: | kriszyp | Owned by: | kzyp |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.3 |
| Component: | Data | Version: | 1.1.0 |
| Severity: | normal | Keywords: | letttable getter setter |
| Cc: | wolfram |
Description
Add a wrapping mechanism to dojo.data stores such that items can be directly accessed using normal JS property access and directly modified with normal JS property modification. Getters and setters are used to translate property access to store.getValue calls and property modifications to store.setValue calls. This is based on the define{G|S}etter property in FF and Safari and the lettable hack for IE. I am creating a module dojox.lang.Observable that is a wrapper object that takes a onRead and onRrite listener that are called when read and writes happen. There will also be a dojox.data.JSData that can take a dojo.data store and add this capability. I am open to using different names for these modules...