Merge pull request #4628 from huffman/fix-selection-error

Fix error in entity properties not showing selections
This commit is contained in:
Philip Rosedale 2015-04-09 20:52:21 -07:00
commit 61e6c0461b

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;