X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/2eac26a1b1fc8995dcebeba22f6991ef3542a886..1067bdcc2f6038b6ffd6a9e3100b0ff75eeb672a:/src/editor/modules/nodeBreadCrumbs/nodeBreadCrumbs.js?ds=sidebyside diff --git a/src/editor/modules/nodeBreadCrumbs/nodeBreadCrumbs.js b/src/editor/modules/nodeBreadCrumbs/nodeBreadCrumbs.js index 55f4fab..188aa6e 100644 --- a/src/editor/modules/nodeBreadCrumbs/nodeBreadCrumbs.js +++ b/src/editor/modules/nodeBreadCrumbs/nodeBreadCrumbs.js @@ -31,7 +31,11 @@ return function(sandbox) { setNodeElement: function(nodeElement) { this.dom.empty(); this.currentNodeElement = nodeElement; - var parents = nodeElement.parents(); + var parents; + if(nodeElement) { + parents = nodeElement.parents(); + } + this.dom.html(template({node: nodeElement, parents: parents, utils: wlxmlUtils})); this.dom.find('li > a[href="#"]').each(function(idx, a) {