Skip to content

Commit

Permalink
Fixed broken highlighting while dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Dec 27, 2015
1 parent ffcae51 commit b9c8c6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -1539,15 +1539,15 @@ Node.prototype.updateDom = function (options) {
var count = this.childs ? this.childs.length : 0;
if (this.type == 'array') {
domValue.innerHTML = '[' + count + ']';
this.dom.tr.className = 'jsoneditor-expandable';
util.addClassName(this.dom.tr, 'jsoneditor-expandable');
}
else if (this.type == 'object') {
domValue.innerHTML = '{' + count + '}';
this.dom.tr.className = 'jsoneditor-expandable';
util.addClassName(this.dom.tr, 'jsoneditor-expandable');
}
else {
domValue.innerHTML = this._escapeHTML(this.value);
this.dom.tr.className = '';
util.removeClassName(this.dom.tr, 'jsoneditor-expandable');
}
}

Expand Down

0 comments on commit b9c8c6a

Please sign in to comment.