Always provide a default case for switch
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -178,6 +178,8 @@ ol.source.Image.prototype.handleImageChange = function(event) {
|
||||
new ol.source.ImageEvent(ol.source.ImageEventType.IMAGELOADERROR,
|
||||
image));
|
||||
break;
|
||||
default:
|
||||
// pass
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user