21324: Fixed accidental inccorect bracket

This commit is contained in:
Menithal 2017-06-13 20:16:56 +03:00
parent 00701eb5c7
commit 020760cc97
2 changed files with 10 additions and 16 deletions

View file

@ -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) {

View file

@ -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;