Skip to content

Commit a9028ee

Browse files
committed
Fixed typos
1 parent 216a09c commit a9028ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Data source is an object to be used by the uiScroll directive to access the data
8888
The directive will locate the object using the provided data source name. It will first look for a property with the given name on its $scope.
8989
If none found it will try to get an angular service with the provided name.
9090

91-
The datasource object implements methods and properties to be used by the directive to access the data:
91+
The data source object implements methods and properties to be used by the directive to access the data:
9292

9393
* Method `get`
9494

@@ -103,7 +103,7 @@ The datasource object implements methods and properties to be used by the direct
103103
* **descriptor** is an object defining the portion of the dataset requested. The object will have 3 properties. Two of them named `index` and `count`. They have the same meaning as in the alternative signature when the parameters passed explicitly (see below). The third one will be named either `append` if the items will be appended to the last item in the buffer, or `prepend` if they are to be prepended to the first item in the buffer. The value of the property in either case will be the item the new items will be appended/prepended to. This is useful if it is easier to identify the items to be added based on the previously requested items rather than on the index. Keep in mind that in certain use cases (i.e. on initial load) the value of the append/prepend property can be undefined.
104104
* **index** indicates the first data row requested
105105
* **count** indicates number of data rows requested
106-
* **success** function to call when the data are retrieved. The implementation of the datsource has to call this function when the data are retrieved and pass it an array of the items retrieved. If no items are retrieved, an empty array has to be passed.
106+
* **success** function to call when the data are retrieved. The implementation of the data source has to call this function when the data are retrieved and pass it an array of the items retrieved. If no items are retrieved, an empty array has to be passed.
107107

108108
**Important:** Make sure to respect the `index` and `count` parameters of the request. The array passed to the success method should have
109109
exactly `count` elements unless it hit eof/bof

0 commit comments

Comments
 (0)