Fix typecast in ol.Collection

This commit is contained in:
Tom Payne
2013-01-07 13:06:02 +01:00
parent 0e93217396
commit 3f08995cfb

View File

@@ -130,7 +130,7 @@ ol.Collection.prototype.getAt = function(index) {
* @return {number} Length.
*/
ol.Collection.prototype.getLength = function() {
return /** @type {number} */ this.get(ol.CollectionProperty.LENGTH);
return /** @type {number} */ (this.get(ol.CollectionProperty.LENGTH));
};