fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: fix - removing redundant event handlers
[fnpeditor.git]
/
src
/
smartxml
/
core.js
diff --git
a/src/smartxml/core.js
b/src/smartxml/core.js
index
10d058f
..
867353d
100644
(file)
--- a/
src/smartxml/core.js
+++ b/
src/smartxml/core.js
@@
-99,6
+99,8
@@
var elementNodeTransformations = {
if(this.sameNode(this.document.root)) {
this.document._defineDocumentProperties(node._$);
}
if(this.sameNode(this.document.root)) {
this.document._defineDocumentProperties(node._$);
}
+
+ /* TODO: This invalidates old references to this node. Caching instances on nodes would fix this. */
this._$.replaceWith(node._$);
this._setNativeNode(node._$[0]);
this._$.append(myContents);
this._$.replaceWith(node._$);
this._setNativeNode(node._$[0]);
this._$.append(myContents);