fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixing list removal
[fnpeditor.git]
/
modules
/
nodeBreadCrumbs
/
nodeBreadCrumbs.js
diff --git
a/modules/nodeBreadCrumbs/nodeBreadCrumbs.js
b/modules/nodeBreadCrumbs/nodeBreadCrumbs.js
index
517f45b
..
c147c09
100644
(file)
--- a/
modules/nodeBreadCrumbs/nodeBreadCrumbs.js
+++ b/
modules/nodeBreadCrumbs/nodeBreadCrumbs.js
@@
-32,11
+32,11
@@
return function(sandbox) {
this.dom.empty();
\r
var nodes = this.nodes = {};
\r
this.currentNode = node;
\r
this.dom.empty();
\r
var nodes = this.nodes = {};
\r
this.currentNode = node;
\r
- this.nodes[node.
id
] = node;
\r
+ this.nodes[node.
getId()
] = node;
\r
var parents = node.parents();
\r
parents.each(function() {
\r
var parent = this;
\r
var parents = node.parents();
\r
parents.each(function() {
\r
var parent = this;
\r
- nodes[parent.
id
] = parent;
\r
+ nodes[parent.
getId()
] = parent;
\r
});
\r
this.dom.html(template({node: node, parents: parents}));
\r
},
\r
});
\r
this.dom.html(template({node: node, parents: parents}));
\r
},
\r
@@
-54,9
+54,9
@@
return function(sandbox) {
return {
\r
start: function() { sandbox.publish('ready'); },
\r
getView: function() { return view.dom; },
\r
return {
\r
start: function() { sandbox.publish('ready'); },
\r
getView: function() { return view.dom; },
\r
- setNode: function(
wlxml
Node) {
\r
- if(!
wlxmlNode.is
(view.currentNode)) {
\r
- view.setNode(
wlxml
Node);
\r
+ setNode: function(
canvas
Node) {
\r
+ if(!
canvasNode.isSame
(view.currentNode)) {
\r
+ view.setNode(
canvas
Node);
\r
}
\r
},
\r
highlightNode: function(id) { view.highlightNode(id); },
\r
}
\r
},
\r
highlightNode: function(id) { view.highlightNode(id); },
\r