Some code improvements suggested by linter
[fnpeditor.git] / modules / nodeBreadCrumbs / nodeBreadCrumbs.js
index 517f45b..7331def 100644 (file)
@@ -32,11 +32,11 @@ return function(sandbox) {
             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
-                nodes[parent.id] = parent;\r
+                nodes[parent.getId()] = parent;\r
             });\r
             this.dom.html(template({node: node, parents: parents}));\r
         },\r
@@ -47,21 +47,21 @@ return function(sandbox) {
         dimNode: function(node) {\r
             this.dom.find('a[data-id="'+node.id+'"]').removeClass('rng-common-hoveredNode');\r
         }\r
-    }\r
+    };\r
     \r
     view.setup();\r
     \r
     return {\r
         start: function() { sandbox.publish('ready'); },\r
         getView: function() { return view.dom; },\r
-        setNode: function(wlxmlNode) {\r
-            if(!wlxmlNode.is(view.currentNode)) {\r
-                view.setNode(wlxmlNode);\r
+        setNode: function(canvasNode) {\r
+            if(!canvasNode.isSame(view.currentNode)) {\r
+                view.setNode(canvasNode);\r
             }\r
         },\r
         highlightNode: function(id) { view.highlightNode(id); },\r
         dimNode: function(id) { view.dimNode(id); }\r
-    }\r
-}\r
+    };\r
+};\r
 \r
 });
\ No newline at end of file