X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/5be499ab63f91b65065fe34f3a6d645efc9ae7b6..2910a0ca2067aee9b747bb3c8776b97a8f248c25:/modules/documentCanvas/wlxmlNode.js?ds=inline 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); } }