From: Aleksander Ɓukasz Date: Thu, 15 May 2014 10:23:40 +0000 (+0200) Subject: smartxml: fix X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/bc66ee34b72b64bbf916a055bf2742ffc7da08c2 smartxml: fix --- diff --git a/src/smartxml/core.js b/src/smartxml/core.js index 048130e..3fde430 100644 --- a/src/smartxml/core.js +++ b/src/smartxml/core.js @@ -13,7 +13,7 @@ var INSERTION = function(implementation) { nodeParent, returned; options = options || {}; - if(!(this.document.containsNode(this)) || !insertion.isNew) { + if(!(this.document.containsNode(this)) || !insertion.insertsNew) { nodeParent = insertion.ofNode.parent(); } if(!insertion.insertsNew && insertion.ofNode.isSurroundedByTextNodes()) {