From 3f08995cfb2a24117d7819bb3c8a85b13b786b3d Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Mon, 7 Jan 2013 13:06:02 +0100 Subject: [PATCH] Fix typecast in ol.Collection --- src/ol/collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/collection.js b/src/ol/collection.js index 454b166cf4..cce5dc87cd 100644 --- a/src/ol/collection.js +++ b/src/ol/collection.js @@ -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)); };