Fix indentation

This commit is contained in:
jos 2019-08-15 10:22:36 +02:00
parent 174918f4eb
commit 2b76640611
1 changed files with 25 additions and 26 deletions

View File

@ -1480,16 +1480,15 @@ treemode._findTopLevelNodes = function (start, end) {
/**
* Show autocomplete menu
* @param {Node} node
* @param {HTMLElement} element
* @private
*/
treemode._showAutoComplete = function (element) {
var node = Node.getNodeFromTarget(element);
var jsonElementType = "";
if (event.target.className.indexOf("jsoneditor-value") >= 0) jsonElementType = "value";
if (event.target.className.indexOf("jsoneditor-field") >= 0) jsonElementType = "field";
var jsonElementType = '';
if (element.className.indexOf('jsoneditor-value') >= 0) jsonElementType = 'value';
if (element.className.indexOf('jsoneditor-field') >= 0) jsonElementType = 'field';
var self = this;