}
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.
+
+
+
+
+
},
/**