Roo.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 17 Mar 2011 04:36:00 +0000 (12:36 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 17 Mar 2011 04:36:00 +0000 (12:36 +0800)
Roo.js

diff --git a/Roo.js b/Roo.js
index 2c4f71f..2395eed 100644 (file)
--- a/Roo.js
+++ b/Roo.js
@@ -336,16 +336,16 @@ Roo.factory(conf, Roo.data);
             }
             var buf = [];
             for(var key in o){
-                var ov = o[key], k = encodeURIComponent(key);
+                var ov = o[key], k = Roo.encodeURIComponent(key);
                 var type = typeof ov;
                 if(type == 'undefined'){
                     buf.push(k, "=&");
                 }else if(type != "function" && type != "object"){
-                    buf.push(k, "=", encodeURIComponent(ov), "&");
+                    buf.push(k, "=", Roo.encodeURIComponent(ov), "&");
                 }else if(ov instanceof Array){
                     if (ov.length) {
                            for(var i = 0, len = ov.length; i < len; i++) {
-                               buf.push(k, "=", encodeURIComponent(ov[i] === undefined ? '' : ov[i]), "&");
+                               buf.push(k, "=", Roo.encodeURIComponent(ov[i] === undefined ? '' : ov[i]), "&");
                            }
                        } else {
                            buf.push(k, "=&");