Skip to content

Commit

Permalink
Code syntax simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBoix committed Apr 18, 2024
1 parent 329e984 commit c46e838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/widget_3d_tiles/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const DEFAULT_OPTIONS = {
* @param {itowns.View} view - The view to which the layer will be added
* @param {itowns.C3DTilesLayer} layer - layer to be added to dom element
* @param {HTMLDivElement} layersContainer - HTML division holding the listed layers
* @param {string} layerContainerClassName - Class name of the layer container
* @param {string} [layerContainerClassName] - Class name of the layer container
*/
function addLayerToDomElement(
view,
Expand Down Expand Up @@ -65,7 +65,7 @@ export class C3DTiles extends itownsWidget.Widget {
// Available layers are optionnaly listed in the UI. Inhibiting this display
// allows for an alternative usage of other widgets with a similar purpose
// but different feature e.g. @ud-viz/widget_layer_choice.
if (typeof options.displayExistingLayers == 'undefined') {
if (options.displayExistingLayers == undefined) {
options.displayExistingLayers = true;
}

Expand Down

0 comments on commit c46e838

Please sign in to comment.