daleharvey/pouchdb — pull request #1398 by ig3 (2014-02-14 09:21:50+00:00)
Title: Fix error determining end of replication

This change fixes a small error in determination of whether replication is complete. If the changes feed calls its complete callback before all changes have been sent, as recent versions of changes in HttpPouch did, then replication could terminate without completing processing of already queued changes. While it doesn't prevent premature termination in this case, it slightly reduces the impact.