fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
smartxml: cloning a node
[fnpeditor.git]
/
src
/
smartxml
/
smartxml.js
diff --git
a/src/smartxml/smartxml.js
b/src/smartxml/smartxml.js
index
6f4677b
..
a583848
100644
(file)
--- 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);
},