mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 05:48:26 +02:00
[Case 7049] ESLint: Fixes various minor errors (details below).
* Fixes some equality checks. * Fixes some spacing issues. * Fixes some comment style issues. * Detected issues reduced from 50 to 28. Changes Committed: modified: scripts/system/html/js/entityProperties.js
This commit is contained in:
parent
618978c959
commit
ca65297489
1 changed files with 22 additions and 22 deletions
|
@ -704,7 +704,7 @@ function loaded() {
|
|||
var properties;
|
||||
EventBridge.scriptEventReceived.connect(function(data) {
|
||||
data = JSON.parse(data);
|
||||
if (data.type == "server_script_status") {
|
||||
if (data.type === "server_script_status") {
|
||||
elServerScriptError.value = data.errorInfo;
|
||||
// If we just set elServerScriptError's diplay to block or none, we still end up with
|
||||
// it's parent contributing 21px bottom padding even when elServerScriptError is display:none.
|
||||
|
@ -719,7 +719,7 @@ function loaded() {
|
|||
error_loading_script: "Error loading script",
|
||||
error_running_script: "Error running script",
|
||||
running: "Running",
|
||||
unloaded: "Unloaded",
|
||||
unloaded: "Unloaded"
|
||||
};
|
||||
elServerScriptStatus.innerText = ENTITY_SCRIPT_STATUS[data.status] || data.status;
|
||||
} else {
|
||||
|
@ -1008,9 +1008,9 @@ function loaded() {
|
|||
elZoneKeyLightDirectionY.value = properties.keyLight.direction.y.toFixed(2);
|
||||
elZoneKeyLightAmbientURL.value = properties.keyLight.ambientURL;
|
||||
|
||||
elZoneHazeModeInherit.checked = (properties.hazeMode == 'inherit');
|
||||
elZoneHazeModeDisabled.checked = (properties.hazeMode == 'disabled');
|
||||
elZoneHazeModeEnabled.checked = (properties.hazeMode == 'enabled');
|
||||
elZoneHazeModeInherit.checked = (properties.hazeMode === 'inherit');
|
||||
elZoneHazeModeDisabled.checked = (properties.hazeMode === 'disabled');
|
||||
elZoneHazeModeEnabled.checked = (properties.hazeMode === 'enabled');
|
||||
|
||||
elZoneHazeRange.value = properties.haze.hazeRange.toFixed(0);
|
||||
elZoneHazeColor.style.backgroundColor = "rgb(" +
|
||||
|
@ -1063,7 +1063,7 @@ function loaded() {
|
|||
elZoneGhostingAllowed.checked = properties.ghostingAllowed;
|
||||
elZoneFilterURL.value = properties.filterURL;
|
||||
|
||||
showElements(document.getElementsByClassName('skybox-section'), elZoneBackgroundMode.value == 'skybox');
|
||||
showElements(document.getElementsByClassName('skybox-section'), elZoneBackgroundMode.value === 'skybox');
|
||||
} else if (properties.type === "PolyVox") {
|
||||
elVoxelVolumeSizeX.value = properties.voxelVolumeSize.x.toFixed(2);
|
||||
elVoxelVolumeSizeY.value = properties.voxelVolumeSize.y.toFixed(2);
|
||||
|
|
Loading…
Reference in a new issue