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

@@ -225,7 +225,7 @@ ol.interaction.Interaction.zoomWithoutConstraints =
resolution !== currentResolution &&
opt_duration && opt_duration > 0) {
map.beforeRender(ol.animation.zoom({
resolution: /** @type {number} */ (currentResolution),
resolution: currentResolution,
duration: opt_duration,
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');
rTree.remove(segmentData);
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} */ ({
segment: [segment[0], vertex],
feature: feature,