Fix error in entity properties not showing selections

This commit is contained in:
Ryan Huffman 2015-04-09 20:10:00 -07:00
parent 59a5fac2f1
commit 5a9ee73476

View file

@ -211,7 +211,14 @@
disableChildren(document.getElementById("properties-list"), 'input');
} else {
var activeElement = document.activeElement;
var selected = activeElement.selectionStart == 0 && activeElement.selectionEnd == activeElement.value.length;
try {
var selected = (activeElement
&& activeElement.selectionStart == 0
&& activeElement.selectionEnd == activeElement.value.length);
} catch (e) {
var selected = false;
}
var properties = data.selections[0].properties;