pouchdb/pouchdb — pull request #2057 by ig3 (2014-04-25 15:15:09+00:00)
Title: Defer replication termination on changes error

This is a small optimization to replication: if changes terminates with an error, all changes preceding the error are processed before replication terminates. This has significant benefit where there is high cost to the changes feed.