Ticket #2542: dojo.data.util.simpleFetch_20070429.patch

File dojo.data.util.simpleFetch_20070429.patch, 1.5 kB (added by guest, 20 months ago)

Corrected documentation in the simpleFetch utility function

  • F:/inetpub/www/js/anon/dojo/anon/dojo/data/util/simpleFetch.js

     
    66        //              The simpleFetch mixin is designed to serve as a set of function(s) that can 
    77        //              be mixed into other datastore implementations to accelerate their development.   
    88        //              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 SimpleBaseStore  
     9        //              call by returning an array of all the found items that matched the query.  The simpleFetch mixin 
    1010        //              is not designed to work for datastores that respond to a fetch() call by incrementally 
    1111        //              loading items, or sequentially loading partial batches of the result 
    1212        //              set.  For datastores that mixin simpleFetch, simpleFetch  
    13         //              implements a fetch method that automatically handles seven of the fetch() 
    14         //              arguments -- onBegin, onItem, onComplete, onError, start, count, and scope 
     13        //              implements a fetch method that automatically handles eight of the fetch() 
     14        //              arguments -- onBegin, onItem, onComplete, onError, start, count, sort and scope 
    1515        //              The class mixing in simpleFetch should not implement fetch(), 
    1616        //              but should instead implement a _fetchItems() method.  The _fetchItems()  
    1717        //              method takes three arguments, the keywordArgs object that was passed