Rename ol.Collection#getAt to ol.Collection#item

TouchList, DOMStringList, DOMTokenList, NodeList all have an
`item(index)` function to retrieve an item from a list.
We should do the same.
This commit is contained in:
Frederic Junod
2014-06-05 15:48:13 +02:00
parent ba060ccc50
commit 4525276c6e
5 changed files with 28 additions and 28 deletions
+2 -2
View File
@@ -144,9 +144,9 @@ ol.Collection.prototype.getArray = function() {
* Get the element at the provided index.
* @param {number} index Index.
* @return {*} Element.
* @todo api
* @todo api stable
*/
ol.Collection.prototype.getAt = function(index) {
ol.Collection.prototype.item = function(index) {
return this.array_[index];
};