From 966ce165d7d62a9e9a939c82c612ad1aee9ae1a3 Mon Sep 17 00:00:00 2001 From: Heiko Thiel Date: Mon, 3 Sep 2018 21:23:53 +0200 Subject: [PATCH] Fix eslint hint --- Source/Widgets/CesiumInspector/CesiumInspector.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Widgets/CesiumInspector/CesiumInspector.js b/Source/Widgets/CesiumInspector/CesiumInspector.js index 73a2409e1b0b..013acb92c4a0 100644 --- a/Source/Widgets/CesiumInspector/CesiumInspector.js +++ b/Source/Widgets/CesiumInspector/CesiumInspector.js @@ -52,7 +52,7 @@ define([ return checkboxContainer; } - function addSection(headerText, sectionVisibleDataBinding, sectionVisibilityToogleClickEvent) { + function addSection(panel, headerText, sectionVisibleDataBinding, sectionVisibilityToogleClickEvent) { var section = document.createElement('div'); section.className = 'cesium-cesiumInspector-section'; section.setAttribute('data-bind', 'css: { "cesium-cesiumInspector-section-collapsed": !' + sectionVisibleDataBinding + ' }'); @@ -93,7 +93,7 @@ define([ element.appendChild(panel); // General - var generalSection = addSection('General', 'generalVisible', 'toggleGeneral'); + var generalSection = addSection(panel, 'General', 'generalVisible', 'toggleGeneral'); var debugShowFrustums = createCheckBox('checked: frustums', 'Show Frustums'); var frustumStatistics = document.createElement('div'); @@ -148,7 +148,7 @@ define([ depthFrustum.appendChild(gPlusButton); // Primitives - var primSection = addSection('Primitives', 'primitivesVisible', 'togglePrimitives'); + var primSection = addSection(panel, 'Primitives', 'primitivesVisible', 'togglePrimitives'); var pickPrimRequired = document.createElement('div'); pickPrimRequired.className = 'cesium-cesiumInspector-pickSection'; primSection.appendChild(pickPrimRequired); @@ -170,7 +170,7 @@ define([ pickPrimRequired.appendChild(this._primitiveOnly); // Terrain - var terrainSection = addSection('Terrain', 'terrainVisible', 'toggleTerrain'); + var terrainSection = addSection(panel, 'Terrain', 'terrainVisible', 'toggleTerrain'); var pickTileRequired = document.createElement('div'); pickTileRequired.className = 'cesium-cesiumInspector-pickSection'; terrainSection.appendChild(pickTileRequired);