Delete item from JsonRestStore without making it dirty
2011-08-01 01:55:20 GMT
I have a need to delete an item from a JsonRestStore without making it dirty and making a delete xhr request on the next save(). Is there any way to do this?
My reason for this is that I have 1 client make a store.deleteItem(…) call, which makes a delete request on .save(), the server deletes the item from the database and tells all clients to remove this item from their local stores. When these clients try to remove the item from their local stores via deleteItem, they mark that item as dirty so that each client will attempt to make an xhrDelete request on the already deleted item on their next save. This could cause problems down the track.
________________________________________________________ Dojotoolkit: http://dojotoolkit.org Reference Guide: http://dojotoolkit.org/reference-guide API Documentation: http://dojotoolkit.org/api Tutorials: http://dojotoolkit.org/documentation Dojo-interest <at> mail.dojotoolkit.org http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest