canvas api: fixing list adding
[fnpeditor.git] / modules / documentCanvas / wlxmlNode.js
index f5ada52..6bd0c35 100644 (file)
@@ -29,6 +29,9 @@ var Node = function(domNode) {
                 list.push(new Node($(this)));\r
             });\r
             return $(list);\r
+        },\r
+        is: function(wlxmlNode) {\r
+            return wlxmlNode && (wlxmlNode.id === this.id);\r
         }\r
     }\r
 \r