X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/105a4e9cdd9d1dffdff6411e7b7e83ff507c68e6..f93de3e03a720d2b0373ed31977aeb4c47c7fb69:/src/smartxml/smartxml.js diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index 08897cc..8924e7f 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -79,6 +79,10 @@ $.extend(DocumentNode.prototype, { return this.document.root.sameNode(this); }, + isInDocument: function() { + return this.document.containsNode(this); + }, + isSiblingOf: function(node) { return node && this.parent().sameNode(node.parent()); },