summaryrefslogtreecommitdiff
path: root/share/www/script/jquery.couch.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/www/script/jquery.couch.js')
-rw-r--r--share/www/script/jquery.couch.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/www/script/jquery.couch.js b/share/www/script/jquery.couch.js
index 0b5d4eab..73d064c4 100644
--- a/share/www/script/jquery.couch.js
+++ b/share/www/script/jquery.couch.js
@@ -289,10 +289,10 @@
var buf = [];
if (typeof(options) === "object" && options !== null) {
for (var name in options) {
- if (~["error", "success"].indexOf(name))
+ if ($.inArray(name, ["error", "success"]) >= 0)
continue;
var value = options[name];
- if (~["key", "startkey", "endkey"].indexOf(name)) {
+ if ($.inArray(name, ["key", "startkey", "endkey"]) >= 0) {
value = toJSON(value);
}
buf.push(encodeURIComponent(name) + "=" + encodeURIComponent(value));