Skip to content

Commit

Permalink
Use "" as valid path in JSON - fix for josdejong#138
Browse files Browse the repository at this point in the history
  • Loading branch information
tomalec committed Oct 17, 2014
1 parent b03dd76 commit 8c4162f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ define(['./ContextMenu', './appendNodeFactory', './util'], function (ContextMenu
var node = this;
var path = [];
while (node) {
var field = node.field || node.index;
var field = node.field != undefined ? node.field : node.index;
if (field !== undefined) {
path.unshift(field);
}
Expand Down

0 comments on commit 8c4162f

Please sign in to comment.