Skip to content

Commit

Permalink
Fix eslint hint
Browse files Browse the repository at this point in the history
  • Loading branch information
Heiko Thiel committed Sep 3, 2018
1 parent dc4defd commit 966ce16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Widgets/CesiumInspector/CesiumInspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 + ' }');
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 966ce16

Please sign in to comment.