From 1ce371e890dcbb2ff5ee2465c51f66a2009246e7 Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Wed, 22 Jul 2009 10:11:42 +0000 Subject: 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 --- share/www/script/jquery.couch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share') 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)); -- cgit v1.2.3