From 020760cc978ee36cfc4a1a65d01acf22176fde46 Mon Sep 17 00:00:00 2001 From: Menithal Date: Tue, 13 Jun 2017 20:16:56 +0300 Subject: [PATCH] 21324: Fixed accidental inccorect bracket --- .../particle_explorer/hifi-entity-ui.js | 5 +++-- .../particle_explorer/particleExplorer.js | 21 +++++++------------ 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/scripts/system/particle_explorer/hifi-entity-ui.js b/scripts/system/particle_explorer/hifi-entity-ui.js index 7f3beb3b77..510bf61fd8 100644 --- a/scripts/system/particle_explorer/hifi-entity-ui.js +++ b/scripts/system/particle_explorer/hifi-entity-ui.js @@ -168,7 +168,7 @@ HifiEntityUI.prototype = { for (var e in keys) { - if (keys.hasOwnProperty[e]) { + if (keys.hasOwnProperty(e)) { var value = keys[e]; var property = currentProperties[value]; @@ -283,7 +283,8 @@ HifiEntityUI.prototype = { animationWrapper.className = "section-wrap"; for (var property in properties) { - if (properties.hasOwnProperty[property]) { + console.log(properties, properties.hasOwnProperty(property)); + if (properties.hasOwnProperty(property)) { var builtRow = self.addElement(animationWrapper, properties[property]); var id = properties[property].id; if (id) { diff --git a/scripts/system/particle_explorer/particleExplorer.js b/scripts/system/particle_explorer/particleExplorer.js index 17d8269634..ca6a873b73 100644 --- a/scripts/system/particle_explorer/particleExplorer.js +++ b/scripts/system/particle_explorer/particleExplorer.js @@ -44,12 +44,10 @@ insertZone.appendChild(textarea); insertZone.parentNode.parentNode.style.maxHeight = insertZone.parentNode.clientHeight + "px"; - document.getElementById("export-properties-button") - .removeAttribute("disabled"); + document.getElementById("export-properties-button").removeAttribute("disabled"); textarea.onchange = function (e) { if (e.target.value !== properties) { - document.getElementById("import-properties-button") - .removeAttribute("disabled"); + document.getElementById("import-properties-button").removeAttribute("disabled"); } }; textarea.oninput = textarea.onchange; @@ -60,10 +58,8 @@ textarea.remove(); insertZone.parentNode.parentNode.style.maxHeight = insertZone.parentNode.clientHeight + "px"; - document.getElementById("export-properties-button") - .setAttribute("disabled", true); - document.getElementById("import-properties-button") - .setAttribute("disabled", true); + document.getElementById("export-properties-button").setAttribute("disabled", true); + document.getElementById("import-properties-button").setAttribute("disabled", true); } } }, @@ -385,12 +381,9 @@ }; ui.setUI(menuStructure); ui.setOnSelect(function () { - document.getElementById("show-properties-button") - .removeAttribute("disabled"); - document.getElementById("export-properties-button") - .setAttribute("disabled", true); - document.getElementById("import-properties-button") - .setAttribute("disabled", true); + document.getElementById("show-properties-button").removeAttribute("disabled"); + document.getElementById("export-properties-button").setAttribute("disabled", true); + document.getElementById("import-properties-button").setAttribute("disabled", true); }); ui.build(); var overrideLoad = false;