Roo.js
[roojs1] / Roo.js
diff --git a/Roo.js b/Roo.js
index 7545ed9..3bf7907 100644 (file)
--- a/Roo.js
+++ b/Roo.js
@@ -361,10 +361,10 @@ Roo.factory(conf, Roo.data);
          * @return {String} 
          */
         
-        encodeURIComponent : function (str)
+        encodeURIComponent : function (data)
         {
             try {
-                return encodeURIComponent(str);
+                return encodeURIComponent(data);
             } catch(e) {} // should be an uri encode error.
             
             if (data == '' || data == null){
@@ -400,8 +400,8 @@ Roo.factory(conf, Roo.data);
                      bs[0] = c;
                 }
                 for(var j=0; j<bs.length; j++){
-                       var b = bs[j];
-                        var hex = nibble_to_hex((b & 0xF0) >>> 4) 
+                    var b = bs[j];
+                    var hex = nibble_to_hex((b & 0xF0) >>> 4) 
                        + nibble_to_hex(b &0x0F);buffer += '%'+hex;
                }
             }