X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/d221e72024aa5d6f90e256728fa70f622d4e57d7..df1aaa5ae8434788bb67662782fe7e5324ac9786:/src/smartxml/smartxml.js diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index 8bf531b..d87ec54 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -203,6 +203,10 @@ $.extend(ElementNode.prototype, { return toret; }, + containsNode: function(node) { + return node && (node.nativeNode === this.nativeNode || node._$.parents().index(this._$) !== -1); + }, + toXML: function() { var wrapper = $('