Fix parens grouping in typecasts

This commit is contained in:
Frederic Junod
2018-02-15 08:31:38 +01:00
parent 4744849b76
commit a8f4348add
16 changed files with 45 additions and 102 deletions
+2 -2
View File
@@ -53,7 +53,7 @@ inherits(TileLayer, Layer);
* @api
*/
TileLayer.prototype.getPreload = function() {
return (/** @type {number} */ this.get(TileProperty.PRELOAD));
return /** @type {number} */ (this.get(TileProperty.PRELOAD));
};
@@ -84,7 +84,7 @@ TileLayer.prototype.setPreload = function(preload) {
* @api
*/
TileLayer.prototype.getUseInterimTilesOnError = function() {
return (/** @type {boolean} */ this.get(TileProperty.USE_INTERIM_TILES_ON_ERROR));
return /** @type {boolean} */ (this.get(TileProperty.USE_INTERIM_TILES_ON_ERROR));
};