Always provide a default case for switch

This commit is contained in:
Tim Schaub
2016-01-04 20:54:20 -07:00
parent 932bf4deb3
commit fd0e2436da
4 changed files with 11 additions and 0 deletions

View File

@@ -567,6 +567,9 @@ ol.format.GPX.writeWptType_ = function(node, coordinate, objectStack) {
if (coordinate[2] !== 0) {
properties['time'] = coordinate[2];
}
break;
default:
// pass
}
/* jshint +W086 */
var orderedKeys = ol.format.GPX.WPT_TYPE_SEQUENCE_[namespaceURI];

View File

@@ -656,6 +656,8 @@ ol.interaction.Modify.handleDragEvent_ = function(evt) {
coordinates[depth[1]][depth[0]][segmentData.index + index] = vertex;
segment[index] = vertex;
break;
default:
// pass
}
this.setGeometryCoordinates_(geometry, coordinates);
@@ -952,6 +954,8 @@ ol.interaction.Modify.prototype.removeVertex_ = function() {
}
}
break;
default:
// pass
}
if (deleted) {

View File

@@ -178,6 +178,8 @@ ol.source.Image.prototype.handleImageChange = function(event) {
new ol.source.ImageEvent(ol.source.ImageEventType.IMAGELOADERROR,
image));
break;
default:
// pass
}
};

View File

@@ -143,6 +143,8 @@ ol.source.UrlTile.prototype.handleTileChange = function(event) {
this.dispatchEvent(
new ol.source.TileEvent(ol.source.TileEventType.TILELOADERROR, tile));
break;
default:
// pass
}
};