Ticket #2542: dojo.data.api.Read_20070501.patch

File dojo.data.api.Read_20070501.patch, 1.3 kB (added by guest, 19 months ago)

Two trivial corrections to documentation on the dojo.data.api.Read interface.

  • dojo/data/api/Read.js

     
    132132                //      summary: 
    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 
    138138                //              the item has not already been loaded.   
     
    161161                // 
    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(). 
    168168                //              For example, onItem.call(scope, item, request) vs.