From 192e3a31978b9f9f51c56a3bf4c677eec610e074 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Mon, 6 Mar 2017 08:39:45 +0100 Subject: [PATCH] Remove unneeded type cast --- src/ol/source/imagestatic.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ol/source/imagestatic.js b/src/ol/source/imagestatic.js index 5a7a26475a..87dac70ea1 100644 --- a/src/ol/source/imagestatic.js +++ b/src/ol/source/imagestatic.js @@ -79,10 +79,8 @@ ol.source.ImageStatic.prototype.handleImageChange = function(evt) { imageWidth = this.imageSize_[0]; imageHeight = this.imageSize_[1]; } else { - // TODO: remove the type cast when a closure-compiler > 20160315 is used. - // see: https://github.com/google/closure-compiler/pull/1664 - imageWidth = /** @type {number} */ (image.width); - imageHeight = /** @type {number} */ (image.height); + imageWidth = image.width; + imageHeight = image.height; } var resolution = ol.extent.getHeight(imageExtent) / imageHeight; var targetWidth = Math.ceil(ol.extent.getWidth(imageExtent) / resolution);