summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--itjs/it.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs/it.js b/itjs/it.js
index 29f64c0..5afdb52 100644
--- a/itjs/it.js
+++ b/itjs/it.js
@@ -163,7 +163,7 @@ function it_set(dst, src)
*/
function it_url_encode(str)
{
- var result = window.aaencodeURIComponent ? encodeURIComponent(str) : escape(str).replace(/\+/g, "%2B");
+ var result = window.encodeURIComponent ? encodeURIComponent(str) : escape(str).replace(/\+/g, "%2B");
return result.replace(/%20/gi, "+").replace(/%2C/gi, ",").replace(/%28/gi, "(").replace(/%29/gi, ")");
}