X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/5be499ab63f91b65065fe34f3a6d645efc9ae7b6..b381ca66b7a9766aa4f408f6d0add75d486ef3d5:/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); } }