roojs-ui.js
authorAlan <alan@roojs.com>
Fri, 7 Jan 2022 08:26:49 +0000 (16:26 +0800)
committerAlan <alan@roojs.com>
Fri, 7 Jan 2022 08:26:49 +0000 (16:26 +0800)
roojs-ui-debug.js
roojs-all.js
roojs-debug.js

roojs-debug.js
roojs-ui-debug.js

index a5e751f..f370891 100644 (file)
@@ -46313,7 +46313,6 @@ Roo.apply(Roo.htmleditor.FilterBlock.prototype,
  * @constructor
  * @method Serializer
  * @param {Object} settings Name/value settings object.
- * @param {tinymce.html.Schema} schema Schema instance to use.
  */
 
 
@@ -46323,8 +46322,7 @@ Roo.htmleditor.TidySerializer = function(settings)
     
     this.writer = new Roo.htmleditor.TidyWriter(settings);
     
-    //settings.validate = !('validate' in settings) || settings.validate;
-    //      self.schema = schema = schema || new Schema();
+    
 
 };
 Roo.htmleditor.TidySerializer.prototype = {
@@ -46405,38 +46403,7 @@ Roo.htmleditor.TidySerializer.prototype = {
         var writer = this.writer;
         var attrs = node.attributes;
         // Sort attributes
-        /*
-        if (validate && attrs && attrs.length > 1) {
-            sortedAttrs = [];
-            sortedAttrs.map = {};
-            elementRule = schema.getElementRule(node.name);
-            if (elementRule) {
-                for (i = 0, l = elementRule.attributesOrder.length; i < l; i++) {
-                    attrName = elementRule.attributesOrder[i];
-                    if (attrName in attrs.map) {
-                        attrValue = attrs.map[attrName];
-                        sortedAttrs.map[attrName] = attrValue;
-                        sortedAttrs.push({
-                            name: attrName,
-                            value: attrValue
-                        });
-                    }
-                }
-                for (i = 0, l = attrs.length; i < l; i++) {
-                    attrName = attrs[i].name;
-                    if (!(attrName in sortedAttrs.map)) {
-                        attrValue = attrs.map[attrName];
-                        sortedAttrs.map[attrName] = attrValue;
-                        sortedAttrs.push({
-                            name: attrName,
-                            value: attrValue
-                        });
-                    }
-                }
-                attrs = sortedAttrs;
-            }
-        }
-        */
+        
         writer.start(node.nodeName, attrs, isEmpty, node);
         if (isEmpty) {
             return;
index 3b3124f..7e8e6b4 100644 (file)
@@ -21844,7 +21844,6 @@ Roo.apply(Roo.htmleditor.FilterBlock.prototype,
  * @constructor
  * @method Serializer
  * @param {Object} settings Name/value settings object.
- * @param {tinymce.html.Schema} schema Schema instance to use.
  */
 
 
@@ -21854,8 +21853,7 @@ Roo.htmleditor.TidySerializer = function(settings)
     
     this.writer = new Roo.htmleditor.TidyWriter(settings);
     
-    //settings.validate = !('validate' in settings) || settings.validate;
-    //      self.schema = schema = schema || new Schema();
+    
 
 };
 Roo.htmleditor.TidySerializer.prototype = {
@@ -21936,38 +21934,7 @@ Roo.htmleditor.TidySerializer.prototype = {
         var writer = this.writer;
         var attrs = node.attributes;
         // Sort attributes
-        /*
-        if (validate && attrs && attrs.length > 1) {
-            sortedAttrs = [];
-            sortedAttrs.map = {};
-            elementRule = schema.getElementRule(node.name);
-            if (elementRule) {
-                for (i = 0, l = elementRule.attributesOrder.length; i < l; i++) {
-                    attrName = elementRule.attributesOrder[i];
-                    if (attrName in attrs.map) {
-                        attrValue = attrs.map[attrName];
-                        sortedAttrs.map[attrName] = attrValue;
-                        sortedAttrs.push({
-                            name: attrName,
-                            value: attrValue
-                        });
-                    }
-                }
-                for (i = 0, l = attrs.length; i < l; i++) {
-                    attrName = attrs[i].name;
-                    if (!(attrName in sortedAttrs.map)) {
-                        attrValue = attrs.map[attrName];
-                        sortedAttrs.map[attrName] = attrValue;
-                        sortedAttrs.push({
-                            name: attrName,
-                            value: attrValue
-                        });
-                    }
-                }
-                attrs = sortedAttrs;
-            }
-        }
-        */
+        
         writer.start(node.nodeName, attrs, isEmpty, node);
         if (isEmpty) {
             return;