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:
@@ -184,7 +184,7 @@ describe('ol.layer.Group', function() {
|
||||
});
|
||||
expect(layerGroup.getLayers()).to.be.a(ol.Collection);
|
||||
expect(layerGroup.getLayers().getLength()).to.be(1);
|
||||
expect(layerGroup.getLayers().getAt(0)).to.be(layer);
|
||||
expect(layerGroup.getLayers().item(0)).to.be(layer);
|
||||
|
||||
goog.dispose(layer);
|
||||
goog.dispose(layerGroup);
|
||||
|
||||
Reference in New Issue
Block a user