X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/86b856fc4fd3a7834c5780b2e5e5700f93a4b0b9..90a2d19833e4b88f1987d6ec54b71d246506d693:/src/smartxml/core.js?ds=inline diff --git a/src/smartxml/core.js b/src/smartxml/core.js index 10d058f..867353d 100644 --- 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._$); } + + /* 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);