From a52dbbb09ec1905e72f850011a707d2b6258193e Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Wed, 29 Jan 2014 20:38:18 +0100 Subject: [PATCH] Improve type checking in ol.geom.Circle#setCenterAndRadius --- src/ol/geom/circle.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/geom/circle.js b/src/ol/geom/circle.js index b669dee7d6..2e77b98284 100644 --- a/src/ol/geom/circle.js +++ b/src/ol/geom/circle.js @@ -159,6 +159,7 @@ ol.geom.Circle.prototype.setCenterAndRadius = if (goog.isNull(this.flatCoordinates)) { this.flatCoordinates = []; } + /** @type {Array.} */ var flatCoordinates = this.flatCoordinates; var offset = ol.geom.flat.deflateCoordinate( flatCoordinates, 0, center, this.stride);