Changeset 8397
- Timestamp:
- 05/02/07 06:21:10 (19 months ago)
- Location:
- dojo/trunk/data
- Files:
-
- 2 modified
-
api/Read.js (modified) (2 diffs)
-
util/simpleFetch.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dojo/trunk/data/api/Read.js
r8386 r8397 133 133 // Given an item, this method loads the item so that a subsequent call 134 134 // to store.isItemLoaded(item) will return true. If a call to 135 // toisItemLoaded() returns true before loadItem() is even called,135 // isItemLoaded() returns true before loadItem() is even called, 136 136 // then loadItem() need not do any work at all and will not even invoke 137 137 // the callback handlers. So, before invoking this method, check that … … 162 162 // The *scope* parameter. 163 163 // If a scope object is provided, all of the callback functions (onItem, 164 // on Item, onError, etc) will be invoked in the context of the scope165 // 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" 166 166 // keyword will be the scope object. If no scope object is provided, 167 167 // the callback functions will be called in the context of dojo.global(). -
dojo/trunk/data/util/simpleFetch.js
r8247 r8397 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()