[Dojo-interest] [Q] direct access to item properties from ItemFileReadSTore:onItem
Dustin Machi
dmachi at dojotoolkit.org
Sun Jul 12 14:20:16 EDT 2009
That is a result of the particular implementation and isn't applicable
to all stores. Accessing properties this way falls outside of the
data api and may have unintended consequences especially with widget
portability (when relying on a particular store behavior). All that
said, I think that is how everyone would like it to work, but it is
difficult or impossible to achieve without getters/setters in current
browsers.
Dustin
On Jul 12, 2009, at 2:13 PM, V S P wrote:
> I came to like the fact that onItem method
> for JsonRestful stores returns me an 'almost' plain javascript object
> of my items that I can just access directly (without the
> store.getValue(item,"property")
>
> is there a way to have similar magic on the regular old stores ?
>
>
>
> thank you
> --
> Vlad P
> author of C++ ORM http://github.com/vladp/CppOrm/tree/master
>
>
> --
> http://www.fastmail.fm - Same, same, but different...
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
More information about the Dojo-interest
mailing list