X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/5be499ab63f91b65065fe34f3a6d645efc9ae7b6..2936591f2732b8c8f23c4edffc0f1a7b30d4bcf0:/modules/documentCanvas/wlxmlNode.js

diff --git a/modules/documentCanvas/wlxmlNode.js b/modules/documentCanvas/wlxmlNode.js
index f5ada52..6bd0c35 100644
--- a/modules/documentCanvas/wlxmlNode.js
+++ b/modules/documentCanvas/wlxmlNode.js
@@ -29,6 +29,9 @@ var Node = function(domNode) {
                 list.push(new Node($(this)));
             });
             return $(list);
+        },
+        is: function(wlxmlNode) {
+            return wlxmlNode && (wlxmlNode.id === this.id);
         }
     }