Improve type checking in ol.geom

This commit is contained in:
Tom Payne
2013-11-18 12:13:26 +01:00
parent 2ecd4013ea
commit f93ae0392a
+1 -1
View File
@@ -192,7 +192,7 @@ ol.geom.Geometry.prototype.setLayout =
this.stride = 2; this.stride = 2;
return; return;
} else { } else {
coordinates = coordinates[0]; coordinates = /** @type {Array} */ (coordinates[0]);
} }
} }
stride = (/** @type {Array} */ (coordinates)).length; stride = (/** @type {Array} */ (coordinates)).length;