- 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.tag + (parentNode.klass ? ' / ' + parentNode.klass : ''),\r
+ id: parentNode.id\r
+ };\r
+ this.nodes[parentNode.id] = parentNode;\r
+ }\r
+ \r