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) {
|
if (coordinate[2] !== 0) {
|
||||||
properties['time'] = coordinate[2];
|
properties['time'] = coordinate[2];
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
// pass
|
||||||
}
|
}
|
||||||
/* jshint +W086 */
|
/* jshint +W086 */
|
||||||
var orderedKeys = ol.format.GPX.WPT_TYPE_SEQUENCE_[namespaceURI];
|
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;
|
coordinates[depth[1]][depth[0]][segmentData.index + index] = vertex;
|
||||||
segment[index] = vertex;
|
segment[index] = vertex;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
// pass
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setGeometryCoordinates_(geometry, coordinates);
|
this.setGeometryCoordinates_(geometry, coordinates);
|
||||||
@@ -952,6 +954,8 @@ ol.interaction.Modify.prototype.removeVertex_ = function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
// pass
|
||||||
}
|
}
|
||||||
|
|
||||||
if (deleted) {
|
if (deleted) {
|
||||||
|
|||||||
@@ -178,6 +178,8 @@ ol.source.Image.prototype.handleImageChange = function(event) {
|
|||||||
new ol.source.ImageEvent(ol.source.ImageEventType.IMAGELOADERROR,
|
new ol.source.ImageEvent(ol.source.ImageEventType.IMAGELOADERROR,
|
||||||
image));
|
image));
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
// pass
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -143,6 +143,8 @@ ol.source.UrlTile.prototype.handleTileChange = function(event) {
|
|||||||
this.dispatchEvent(
|
this.dispatchEvent(
|
||||||
new ol.source.TileEvent(ol.source.TileEventType.TILELOADERROR, tile));
|
new ol.source.TileEvent(ol.source.TileEventType.TILELOADERROR, tile));
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
// pass
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user