From 8b99fd9bc198cf065d9b8ffd70ad280d3614a642 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Fri, 28 Mar 2014 12:02:08 +0100 Subject: [PATCH] Updates to pass jshint validation --- src/ol/interaction/modifyinteraction.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ol/interaction/modifyinteraction.js b/src/ol/interaction/modifyinteraction.js index 6ae5a2e76b..7b5f003351 100644 --- a/src/ol/interaction/modifyinteraction.js +++ b/src/ol/interaction/modifyinteraction.js @@ -655,7 +655,7 @@ ol.interaction.Modify.prototype.removeVertex_ = function() { coordinates = geometry.getCoordinates(); uid = goog.getUid(segmentData.feature); left = right = index = undefined; - if (dragSegment[1] == 0) { + if (dragSegment[1] === 0) { right = segmentData; index = segmentData.index; } else if (dragSegment[1] == 1) { @@ -687,6 +687,7 @@ ol.interaction.Modify.prototype.removeVertex_ = function() { break; case ol.geom.GeometryType.MULTI_POLYGON: component = component[segmentData.depth[1]]; + /* falls through */ case ol.geom.GeometryType.POLYGON: component = component[segmentData.depth[0]]; if (component.length > 4) {