Roo/htmleditor/TidyEntities.js
authorAlan <alan@roojs.com>
Thu, 6 Jan 2022 08:53:28 +0000 (16:53 +0800)
committerAlan <alan@roojs.com>
Thu, 6 Jan 2022 08:53:28 +0000 (16:53 +0800)
Roo/htmleditor/TidyEntities.js

index b996f13..f57ed87 100644 (file)
@@ -18,10 +18,10 @@ Roo.htmleditor.TidyEntities = {
        // Build a two way lookup table for the entities
        
        // Unpack entities lookup where the numbers are in radix 32 to reduce the size
-       te = Roo.htmleditor.TidyEntities;
-       if (te.namedEntities === false) {
-           te.namedEntities = buildEntitiesLookup(te.namedEntitiesData, 32);
-       }
+       
+      
+       this.namedEntities = buildEntitiesLookup(this.namedEntitiesData, 32);
+       
     },
 
 
@@ -96,7 +96,7 @@ Roo.htmleditor.TidyEntities = {
     textCharsRegExp : /[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
     rawCharsRegExp : /[<>&\"\']/g,
     entityRegExp : /&#([a-z0-9]+);?|&([a-z0-9]+);/gi,
-    namedEntities  = {},
+    namedEntities  : false,
     namedEntitiesData : [ 
         '50',
         'nbsp',