Merge pull request #139 from tomalec/138-emptyStringPath

Use `""` as valid path in JSON
This commit is contained in:
Jos de Jong 2014-10-20 21:18:32 +02:00
commit 75647308da
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}