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

View File

@@ -192,7 +192,7 @@ ol.geom.Geometry.prototype.setLayout =
this.stride = 2;
return;
} else {
coordinates = coordinates[0];
coordinates = /** @type {Array} */ (coordinates[0]);
}
}
stride = (/** @type {Array} */ (coordinates)).length;