From: Alan Knowles Date: Thu, 17 Mar 2011 04:20:17 +0000 (+0800) Subject: Roo.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=0c9163df52887ce0e2ecd97b530bf17c7499458f Roo.js --- diff --git a/Roo.js b/Roo.js index 7df38d2bec..dc82babdb2 100644 --- a/Roo.js +++ b/Roo.js @@ -354,6 +354,23 @@ Roo.factory(conf, Roo.data); } buf.pop(); return buf.join(""); + }, + /** + * Safe version of encodeURIComponent + * @param {String} str + * @return {String} + */ + + encodeURIComponent : function (str) + { + try { + return encodeURIComponent(str); + } catch(e) {} // should be an uri encode error. + + + + + }, /**