| commit | 341e91424cc05e688905c56d4c0eff507828e010 | [log] [tgz] |
|---|---|---|
| author | Nolan Lawson <nolan.lawson@gmail.com> | Sat Mar 07 10:33:20 2015 -0500 |
| committer | Nolan Lawson <nolan.lawson@gmail.com> | Sat Mar 07 10:37:30 2015 -0500 |
| tree | 62f96a5f5c72b1d1157698be793847154e1b40b4 | |
| parent | a4ce4c68654e0059a10be11840b84c796f3d63b2 [diff] |
(#3605) - fix immediate cancel of live replication The example from the docs where the user immediately calls `cancel()` on a live replication is actually broken, because we don't detect it if it's canceled in the same turn of the event loop. This fixes that.
PouchDB was written to help web developers build applications that work as well offline as well as they do online, applications save data locally so the user can use all the features of an app even while offline and synchronise the data between clients so they have up to date data wherever they go.
PouchDB is a free open source project, written in Javascript by these wonderful contributors and inspired by Apache CouchDB.
To get started using PouchDB check out our Documentation and the API Documentation.
If you want to get involved then check out the contributing guide
var db = new PouchDB('dbname'); db.put({ _id: 'dave@gmail.com', name: 'David', age: 68 }); db.changes().on('change', function() { console.log('Ch-Ch-Changes'); }); db.replicate.to('http://example.com/mydb');