Roo/htmleditor/TidySerializer.js
authorAlan <alan@roojs.com>
Thu, 6 Jan 2022 09:13:12 +0000 (17:13 +0800)
committerAlan <alan@roojs.com>
Thu, 6 Jan 2022 09:13:12 +0000 (17:13 +0800)
Roo/htmleditor/TidySerializer.js

index 7a33b3d..641db7a 100644 (file)
@@ -40,6 +40,7 @@ Roo.apply(Roo.htmleditor.TidySerializer.prototype, {
         
         // = settings.validate;
         var writer = this.writer;
+        var walk  = this.walk;
         this.handlers = {
             // #text
             3: function(node) {
@@ -75,7 +76,8 @@ Roo.apply(Roo.htmleditor.TidySerializer.prototype, {
         };
         writer.reset();
         1 != node.nodeType || this.inner ? handlers[11](node) : walk(node);
-    return writer.getContent();
+        return writer.getContent();
+    }
 
     function walk(node) {
         var name, isEmpty, attrs, attrName, attrValue, sortedAttrs, i, l, elementRule, handler = handlers[node.type];