X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/f7c97ef38dc00ec9b5358ae0bf959a5e6f99271c..969f365b3ee6d3cb54f98b23e1ebb97df9f801dd:/modules/nodeFamilyTree/nodeFamilyTree.js?ds=inline diff --git a/modules/nodeFamilyTree/nodeFamilyTree.js b/modules/nodeFamilyTree/nodeFamilyTree.js index b5cb56e..049352e 100644 --- a/modules/nodeFamilyTree/nodeFamilyTree.js +++ b/modules/nodeFamilyTree/nodeFamilyTree.js @@ -21,11 +21,11 @@ return function(sandbox) { this.dom.on('mouseenter', 'a', function(e) { var target = $(e.target); - sandbox.publish('nodeEntered', view.nodes[target.attr('data-id')]) + sandbox.publish('nodeEntered', view.nodes[target.attr('data-id')]); }); this.dom.on('mouseleave', 'a', function(e) { var target = $(e.target); - sandbox.publish('nodeLeft', view.nodes[target.attr('data-id')]) + sandbox.publish('nodeLeft', view.nodes[target.attr('data-id')]); }); }, setNode: function(node) { @@ -33,7 +33,7 @@ return function(sandbox) { var nodes = this.nodes = {}; this.currentNode = node; var parentNode = node.parent(); - var parent = undefined; + var parent; if(parentNode) { parent = { @@ -58,7 +58,7 @@ return function(sandbox) { dimNode: function(canvasNode) { this.dom.find('a[data-id="'+canvasNode.getId()+'"]').removeClass('rng-common-hoveredNode'); } - } + }; view.setup();