smartxml: minor refactoring - better naming
[fnpeditor.git] / src / smartxml / smartxml.js
index 3ee49b7..502eda6 100644 (file)
@@ -122,7 +122,7 @@ $.extend(DocumentNode.prototype, {
         return myIdx < parentContents.length - 1 ? parentContents[myIdx+1] : null;
     },
 
-    isSurroundedByTextElements: function() {
+    isSurroundedByTextNodes: function() {
         var prev = this.prev(),
             next = this.next();
         return prev && (prev.nodeType === Node.TEXT_NODE) && next && (next.nodeType === Node.TEXT_NODE);