Fix typecast in ol.Collection
This commit is contained in:
@@ -130,7 +130,7 @@ ol.Collection.prototype.getAt = function(index) {
|
|||||||
* @return {number} Length.
|
* @return {number} Length.
|
||||||
*/
|
*/
|
||||||
ol.Collection.prototype.getLength = function() {
|
ol.Collection.prototype.getLength = function() {
|
||||||
return /** @type {number} */ this.get(ol.CollectionProperty.LENGTH);
|
return /** @type {number} */ (this.get(ol.CollectionProperty.LENGTH));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user