fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wip: canvas.commands - lists through new api
[fnpeditor.git]
/
src
/
smartxml
/
core.js
diff --git
a/src/smartxml/core.js
b/src/smartxml/core.js
index
bab584e
..
dd472ce
100644
(file)
--- a/
src/smartxml/core.js
+++ b/
src/smartxml/core.js
@@
-3,7
+3,8
@@
define([
], function() {
'use strict';
], function() {
'use strict';
-
+/* globals Node */
+var TEXT_NODE = Node.TEXT_NODE;
var INSERTION = function(implementation) {
var toret = function(node) {
var INSERTION = function(implementation) {
var toret = function(node) {
@@
-81,7
+82,7
@@
var elementNodeTransformations = {
this.prev().appendText(next.getText());
next.detach();
}
this.prev().appendText(next.getText());
next.detach();
}
- return
DocumentNode.prototype.detach.call(this
);
+ return
this.__super__.detach(
);
},
setTag: function(tagName) {
},
setTag: function(tagName) {
@@
-210,7
+211,7
@@
var textNodeTransformations = {
_with: {tagName: desc.tagName, attrs: desc.attrs}
});
} else {
_with: {tagName: desc.tagName, attrs: desc.attrs}
});
} else {
- return
DocumentNode.prototype
.wrapWith.call(this, desc);
+ return
this.__super__
.wrapWith.call(this, desc);
}
},
}
},
@@
-342,7
+343,7
@@
var documentTransformations = {
replaceRoot: function(node) {
var insertion = this.getNodeInsertion(node);
this.root.detach();
replaceRoot: function(node) {
var insertion = this.getNodeInsertion(node);
this.root.detach();
-
defineDocumentProperties(this,
insertion.ofNode._$);
+
this._defineDocumentProperties(
insertion.ofNode._$);
insertion.ofNode.triggerChangeEvent('nodeAdded');
return insertion.ofNode;
}
insertion.ofNode.triggerChangeEvent('nodeAdded');
return insertion.ofNode;
}