Fix indentation
This commit is contained in:
parent
174918f4eb
commit
2b76640611
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue