roojs-ui.js
[roojs1] / String.js
index d326c40..f5a603e 100644 (file)
--- a/String.js
+++ b/String.js
@@ -66,7 +66,7 @@ var s = String.format('<div class="{0}">{1}</div>', cls, text);
         return format.replace(/\{(\d+)\}/g, function(m, i){
             return Roo.util.Format.htmlEncode(args[i]);
         });
-    }.
+    }
   
     
 });
@@ -98,19 +98,19 @@ String.prototype.toggle = function(value, other){
   *
   * @return {String} The clean string
   */
-String.prototype.unicodeClean: function () {
-        return this.replace(/[\s\S]/g,
-            function(character) {
-                if (character.charCodeAt()< 256) {
-                  return character;
-               }
-               try {
-                    encodeURIComponent(character);
-               } catch(e) { 
-                  return '';
-               }
-               return character;
-            }
-        );
-    }
+String.prototype.unicodeClean = function () {
+    return this.replace(/[\s\S]/g,
+        function(character) {
+            if (character.charCodeAt()< 256) {
+              return character;
+           }
+           try {
+                encodeURIComponent(character);
+           } catch(e) { 
+              return '';
+           }
+           return character;
+        }
+    );
+};