Skip to content
Browse files

Dont error if callback not provided (fixes #47)

  • Loading branch information...
1 parent 083913c commit c7d5e2ec90e57fa0e5a974928db7fc483e3952c6 @daleharvey daleharvey committed Apr 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/pouch.js
View
2 src/pouch.js
@@ -4,7 +4,7 @@ window.Pouch = function(name, opts, callback) {
return new Pouch(name, opts, callback);
}
- if (opts instanceof Function) {
+ if (opts instanceof Function || typeof opts === 'undefined') {
callback = opts;
opts = {};
}

0 comments on commit c7d5e2e

Please sign in to comment.
Something went wrong with that request. Please try again.