Check for undefined options. Patch by Filipe Manana. Closes COUCHDB-774.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@947336 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/jquery.couch.js b/jquery.couch.js
index 5eb0bc3..4b16742 100644
--- a/jquery.couch.js
+++ b/jquery.couch.js
@@ -476,6 +476,7 @@
}
function fullCommit(options) {
+ var options = options || {};
if (typeof options.ensure_full_commit !== "undefined") {
var commit = options.ensure_full_commit;
delete options.ensure_full_commit;