Updates to pass jshint validation
This commit is contained in:
@@ -655,7 +655,7 @@ ol.interaction.Modify.prototype.removeVertex_ = function() {
|
|||||||
coordinates = geometry.getCoordinates();
|
coordinates = geometry.getCoordinates();
|
||||||
uid = goog.getUid(segmentData.feature);
|
uid = goog.getUid(segmentData.feature);
|
||||||
left = right = index = undefined;
|
left = right = index = undefined;
|
||||||
if (dragSegment[1] == 0) {
|
if (dragSegment[1] === 0) {
|
||||||
right = segmentData;
|
right = segmentData;
|
||||||
index = segmentData.index;
|
index = segmentData.index;
|
||||||
} else if (dragSegment[1] == 1) {
|
} else if (dragSegment[1] == 1) {
|
||||||
@@ -687,6 +687,7 @@ ol.interaction.Modify.prototype.removeVertex_ = function() {
|
|||||||
break;
|
break;
|
||||||
case ol.geom.GeometryType.MULTI_POLYGON:
|
case ol.geom.GeometryType.MULTI_POLYGON:
|
||||||
component = component[segmentData.depth[1]];
|
component = component[segmentData.depth[1]];
|
||||||
|
/* falls through */
|
||||||
case ol.geom.GeometryType.POLYGON:
|
case ol.geom.GeometryType.POLYGON:
|
||||||
component = component[segmentData.depth[0]];
|
component = component[segmentData.depth[0]];
|
||||||
if (component.length > 4) {
|
if (component.length > 4) {
|
||||||
|
|||||||
Reference in New Issue
Block a user