So I considered that, but that would complicate the api aka how do you
clear it
On Apr 28, 2014 7:40 PM, "Dale Harvey" <notifications@github.com> wrote:

> In lib/setup.js:
>
> > @@ -72,6 +72,15 @@ PouchDB.parseAdapter = function (name, opts) {
> >    throw 'No valid adapter found';
> >  };
> >
> > +var defaultOpts = {};
> > +
> > +PouchDB.defaults = function (opts) {
> > +  if (opts) {
> > +    defaultOpts = opts;
> > +  }
> > +  else { return defaultOpts; }
> > +};
> > +
>
> We will likely want to do default options at some point, so we should use
> .extend instead of replacing the entire opts object, we should just always
> return the defaults object as well
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/pouchdb/pouchdb/pull/2074/files#r12074000>
> .
>