Ticket #2542: dojo.data.util.simpleFetch_20070429.patch
| File dojo.data.util.simpleFetch_20070429.patch, 1.5 kB (added by guest, 20 months ago) |
|---|
-
F:/inetpub/www/js/anon/dojo/anon/dojo/data/util/simpleFetch.js
6 6 // The simpleFetch mixin is designed to serve as a set of function(s) that can 7 7 // be mixed into other datastore implementations to accelerate their development. 8 8 // The simpleFetch mixin should work well for any datastore that can respond to a _fetchItems() 9 // call by returning an array of all the found items that matched the query. The SimpleBaseStore9 // call by returning an array of all the found items that matched the query. The simpleFetch mixin 10 10 // is not designed to work for datastores that respond to a fetch() call by incrementally 11 11 // loading items, or sequentially loading partial batches of the result 12 12 // set. For datastores that mixin simpleFetch, simpleFetch 13 // implements a fetch method that automatically handles sevenof the fetch()14 // arguments -- onBegin, onItem, onComplete, onError, start, count, and scope13 // implements a fetch method that automatically handles eight of the fetch() 14 // arguments -- onBegin, onItem, onComplete, onError, start, count, sort and scope 15 15 // The class mixing in simpleFetch should not implement fetch(), 16 16 // but should instead implement a _fetchItems() method. The _fetchItems() 17 17 // method takes three arguments, the keywordArgs object that was passed