function sync() {
        syncDom.setAttribute('data-sync-state', 'syncing');
        var opts = {continuous: true, complete: syncError};
        db.replicate.to(remoteCouch, opts);
        db.replicate.from(remoteCouch, opts);
    }
// Initialise a sync with the remote server
Initialise a sync with the remote server
Initialise a sync with the remote server
function sync() {
        syncDom.setAttribute('data-sync-state', 'syncing');
        var opts = {continuous: true, complete: syncError};
        db.replicate.to(remoteCouch, opts);
        db.replicate.from(remoteCouch, opts);
    }
function sync ( ) { syncDom . setAttribute ( 'data-sync-state' , 'syncing' ) ; var opts = { continuous : true , complete : syncError } ; db . replicate . to ( remoteCouch , opts ) ; db . replicate . from ( remoteCouch , opts ) ; }
Initialise a sync with the remote server
Initialise a sync with the remote server