(#2478) - cancel changes when replication is canceled

simplified version of #2478
I meant hazaa as I was at the boston tea party museum yesterday


On Fri, Aug 29, 2014 at 1:49 PM, Nolan Lawson <notifications@github.com>
wrote:

> In tests/test.replication.js:
>
> > +      rep.on('change', function () {
> > +        if (called) {
> > +          done(new Error('called too many times!'));
> > +        } else {
> > +          called = true;
> > +          rep.cancel();
> > +          remote.put({}, 'foo').then(function () {
> > +            return remote.put({}, 'bar');
> > +          }).then(function () {
> > +            setTimeout(function () {
> > +              done();
> > +            }, 500);
> > +          });
> > +        }
> > +      });
> > +      remote.put({}, 'gazaa');
>
> gazaa?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/pouchdb/pouchdb/pull/2692/files#r16911064>.
>



-- 
-Calvin W. Metcalf