summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2009-07-22 10:11:42 +0000
committerChristopher Lenz <cmlenz@apache.org>2009-07-22 10:11:42 +0000
commit1ce371e890dcbb2ff5ee2465c51f66a2009246e7 (patch)
treef7e9ef681ba3e731d3208e6e3582e4f6e9f842a6 /share
parentf6507e21f87f962c7e7731123450914aa12e227d (diff)
Avoid usage of `Array.indexOf` function, which is not available on IE (and not yet part of any final ECMAScript standard).
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796658 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-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));