smartxml: minor refactoring - better naming
[fnpeditor.git] / src / smartxml / core.js
index 9630a77..419b175 100644 (file)
@@ -106,7 +106,7 @@ var elementNodeTransformations = {
 
     detach: function() {
         var next;
-        if(this.parent() && this.isSurroundedByTextElements()) {
+        if(this.parent() && this.isSurroundedByTextNodes()) {
             next = this.next();
             this.prev().appendText(next.getText());
             next.detach();