Remove unnecessary cast

This commit is contained in:
Frederic Junod
2015-10-01 12:26:12 +02:00
parent 900827987a
commit 4d53049a7f
4 changed files with 5 additions and 7 deletions

View File

@@ -66,7 +66,7 @@ ol.format.GML3 = function(opt_options) {
* @type {boolean} * @type {boolean}
*/ */
this.multiSurface_ = options.multiSurface !== undefined ? this.multiSurface_ = options.multiSurface !== undefined ?
/** @type {boolean} */ (options.multiSurface) : true; options.multiSurface : true;
/** /**
* @inheritDoc * @inheritDoc

View File

@@ -225,7 +225,7 @@ ol.interaction.Interaction.zoomWithoutConstraints =
resolution !== currentResolution && resolution !== currentResolution &&
opt_duration && opt_duration > 0) { opt_duration && opt_duration > 0) {
map.beforeRender(ol.animation.zoom({ map.beforeRender(ol.animation.zoom({
resolution: /** @type {number} */ (currentResolution), resolution: currentResolution,
duration: opt_duration, duration: opt_duration,
easing: ol.easing.easeOut easing: ol.easing.easeOut
})); }));

View File

@@ -824,7 +824,7 @@ ol.interaction.Modify.prototype.insertVertex_ = function(segmentData, vertex) {
goog.asserts.assert(segment !== undefined, 'segment should be defined'); goog.asserts.assert(segment !== undefined, 'segment should be defined');
rTree.remove(segmentData); rTree.remove(segmentData);
goog.asserts.assert(index !== undefined, 'index should be defined'); goog.asserts.assert(index !== undefined, 'index should be defined');
this.updateSegmentIndices_(geometry, /** @type {number} */ (index), depth, 1); this.updateSegmentIndices_(geometry, index, depth, 1);
var newSegmentData = /** @type {ol.interaction.SegmentDataType} */ ({ var newSegmentData = /** @type {ol.interaction.SegmentDataType} */ ({
segment: [segment[0], vertex], segment: [segment[0], vertex],
feature: feature, feature: feature,

View File

@@ -80,11 +80,9 @@ ol.layer.Heatmap = function(opt_options) {
this.setGradient(options.gradient ? this.setGradient(options.gradient ?
options.gradient : ol.layer.Heatmap.DEFAULT_GRADIENT); options.gradient : ol.layer.Heatmap.DEFAULT_GRADIENT);
this.setBlur(options.blur !== undefined ? this.setBlur(options.blur !== undefined ? options.blur : 15);
/** @type {number} */ (options.blur) : 15);
this.setRadius(options.radius !== undefined ? this.setRadius(options.radius !== undefined ? options.radius : 8);
/** @type {number} */ (options.radius) : 8);
goog.events.listen(this, [ goog.events.listen(this, [
ol.Object.getChangeEventType(ol.layer.HeatmapLayerProperty.BLUR), ol.Object.getChangeEventType(ol.layer.HeatmapLayerProperty.BLUR),