smartxml: fix
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 15 May 2014 10:23:40 +0000 (12:23 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 27 May 2014 14:18:08 +0000 (16:18 +0200)
src/smartxml/core.js

index 048130e..3fde430 100644 (file)
@@ -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()) {