From 937ef1f68c84e938ce470c8d03966aa917420587 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 1 Aug 2015 23:21:11 -0400 Subject: [PATCH] (#4100) - remove uptodate --- docs/_includes/api/replication.html | 3 +-- lib/changes.js | 1 - lib/replicate/replicate.js | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/_includes/api/replication.html b/docs/_includes/api/replication.html index 485deed9ec..52e0a37d2c 100644 --- a/docs/_includes/api/replication.html +++ b/docs/_includes/api/replication.html @@ -70,7 +70,6 @@ * __`active`__ - This event fires when the replication starts actively processing changes; e.g. when it recovers from an error or new changes are available. * __`denied`__ (`err`) - This event fires if a document failed to replicate due to validation or authorization errors. * __`error`__ (`err`) - This event is fired when the replication is stopped due to an unrecoverable failure. If `retry` is `false`, this will also fire when the user goes offline or another network error occurs (so you can handle retries yourself, if you want). -* __`uptodate`__ (*deprecated*) - This event fires when a live replication has caught up and is waiting on future changes. This should be replaced by using the `paused` event. #### Single-shot @@ -296,4 +295,4 @@ The first time a request fails, this function will receive 0 as input. The next time it fails, 1000 will be passed in, then 3000, then 9000, etc. When the user comes back online, the `delay` goes back to 0. -By default, PouchDB uses a backoff function that chooses a random starting number between 0 and 2000 milliseconds and will roughly double every time, with some randommness to prevent client requests from occurring simultaneously. \ No newline at end of file +By default, PouchDB uses a backoff function that chooses a random starting number between 0 and 2000 milliseconds and will roughly double every time, with some randommness to prevent client requests from occurring simultaneously. diff --git a/lib/changes.js b/lib/changes.js index a0289dffa4..f62ffb90c2 100644 --- a/lib/changes.js +++ b/lib/changes.js @@ -42,7 +42,6 @@ function Changes(db, opts, callback) { } self.emit('change', change); if (self.startSeq && self.startSeq <= change.seq) { - self.emit('uptodate'); self.startSeq = false; } if (change.deleted) { diff --git a/lib/replicate/replicate.js b/lib/replicate/replicate.js index 0b142d6cf8..56ef35da18 100644 --- a/lib/replicate/replicate.js +++ b/lib/replicate/replicate.js @@ -181,7 +181,6 @@ function replicate(src, target, opts, returnValue, result) { if ((continuous && changesOpts.live) || changesCompleted) { returnValue.state = 'pending'; returnValue.emit('paused'); - returnValue.emit('uptodate', result); } if (changesCompleted) { completeReplication();