fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor
[fnpeditor.git]
/
src
/
smartxml
/
smartxml.js
diff --git
a/src/smartxml/smartxml.js
b/src/smartxml/smartxml.js
index
2d0e09f
..
b7fc3f1
100644
(file)
--- a/
src/smartxml/smartxml.js
+++ b/
src/smartxml/smartxml.js
@@
-43,14
+43,6
@@
$.extend(ElementNode.prototype, DocumentNode.prototype, {
return this.nativeNode.tagName.toLowerCase();
},
return this.nativeNode.tagName.toLowerCase();
},
- append: function(documentNode) {
- this._$.append(documentNode.nativeNode);
- },
-
- before: function(node) {
- this._$.before(node.nativeNode);
- },
-
contents: function() {
var toret = [];
this._$.contents().each(function() {
contents: function() {
var toret = [];
this._$.contents().each(function() {
@@
-70,6
+62,14
@@
$.extend(ElementNode.prototype, DocumentNode.prototype, {
return new ElementNode(this._$.parent());
},
return new ElementNode(this._$.parent());
},
+ append: function(documentNode) {
+ this._$.append(documentNode.nativeNode);
+ },
+
+ before: function(node) {
+ this._$.before(node.nativeNode);
+ },
+
unwrapContent: function() {
var parent = this.parent();
if(!parent)
unwrapContent: function() {
var parent = this.parent();
if(!parent)