From f0b728185fbc463f932a0329c1fcb1602101c206 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Tue, 26 Nov 2013 14:09:58 +0100 Subject: [PATCH] smartxml: fix --- src/smartxml/smartxml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index a60ae9a..5004863 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -184,7 +184,7 @@ $.extend(ElementNode.prototype, { detach: function() { var next; - if(parent && this.isSurroundedByTextElements()) { + if(this.parent() && this.isSurroundedByTextElements()) { next = this.next(); this.prev().appendText(next.getText()); next.detach(); -- 2.20.1