Changeset 8397

Show
Ignore:
Timestamp:
05/02/07 06:21:10 (19 months ago)
Author:
jaredj
Message:

Applying two patches from Michael Smith for minor documentation updates (dojo.data.util.simpleFetch_20070429.patch and dojo.data.api.Read_20070501.patch). refs #2542

Location:
dojo/trunk/data
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/data/api/Read.js

    r8386 r8397  
    133133                //              Given an item, this method loads the item so that a subsequent call 
    134134                //              to store.isItemLoaded(item) will return true.  If a call to 
    135                 //              to isItemLoaded() returns true before loadItem() is even called, 
     135                //              isItemLoaded() returns true before loadItem() is even called, 
    136136                //              then loadItem() need not do any work at all and will not even invoke 
    137137                //              the callback handlers.  So, before invoking this method, check that 
     
    162162                //      The *scope* parameter. 
    163163                //              If a scope object is provided, all of the callback functions (onItem,  
    164                 //              onItem, onError, etc) will be invoked in the context of the scope 
    165                 //              object.  In the body of the callback function, the value of the "this" 
     164                //              onError, etc) will be invoked in the context of the scope object. 
     165                //              In the body of the callback function, the value of the "this" 
    166166                //              keyword will be the scope object.   If no scope object is provided, 
    167167                //              the callback functions will be called in the context of dojo.global(). 
  • dojo/trunk/data/util/simpleFetch.js

    r8247 r8397  
    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()