- var parentClass = node.parent().attr('wlxml-class');\r
- var parent = node.parent('[wlxml-tag]').length ? {\r
- repr: node.parent().attr('wlxml-tag') + (parentClass ? ' / ' + parentClass : ''),\r
- id: node.parent().attr('id')\r
- } : undefined;\r
+ console.log('familyTree sets node');\r
+ var nodes = this.nodes = {};\r
+ this.currentNode = node;\r
+ var parentNode = node.parent();\r
+ var parent = undefined;\r
+ \r
+ if(parentNode) {\r
+ parent = {\r
+ repr: parentNode.getTag() + (parentNode.getClass() ? ' / ' + parentNode.getClass() : ''),\r
+ id: parentNode.getId()\r
+ };\r
+ this.nodes[parentNode.getId()] = parentNode;\r
+ }\r
+ \r