X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/65bc0821986afa202fcb6b7e8e77661f951b808d..0032858d24ed6dba11f8943072cd6db475a2dd17:/src/smartxml/smartxml.js diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index 6f4677b..a583848 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -36,6 +36,10 @@ $.extend(DocumentNode.prototype, { this._$ = $(nativeNode); }, + clone: function() { + return this.document.createDocumentNode(this._$.clone(true, true)[0]); + }, + isRoot: function() { return this.document.root.sameNode(this); },