prod/service-worker-28ddbc7ef7a575da0539a0f05f4bfdae.js
function addDeletedOrLocalIndex(txn, callback) {
    var docStore = txn.objectStore(DOC_STORE);
    docStore.createIndex('deletedOrLocal', 'deletedOrLocal', {unique : false});

    docStore.openCursor().onsuccess = function (event) {
      var cursor = event.target.result;
      if (cursor) {
        var metadata = cursor.value;
        var deleted = pouchdbMerge.isDeleted(metadata);
        metadata.deletedOrLocal = deleted ? "1" : "0";
        docStore.put(metadata);
        cursor.continue();
      } else {
        callback();
      }
    };
  }
function addDeletedOrLocalIndex(txn, callback) {
    var docStore = txn.objectStore(DOC_STORE);
    docStore.createIndex('deletedOrLocal', 'deletedOrLocal', {unique : false});

    docStore.openCursor().onsuccess = function (event) {
      var cursor = event.target.result;
      if (cursor) {
        var metadata = cursor.value;
        var deleted = pouchdbMerge.isDeleted(metadata);
        metadata.deletedOrLocal = deleted ? "1" : "0";
        docStore.put(metadata);
        cursor.continue();
      } else {
        callback();
      }
    };
  }
function addDeletedOrLocalIndex ( txn , callback ) { var docStore = txn . objectStore ( DOC_STORE ) ; docStore . createIndex ( 'deletedOrLocal' , 'deletedOrLocal' , { unique : false } ) ; docStore . openCursor ( ) . onsuccess = function ( event ) { var cursor = event . target . result ; if ( cursor ) { var metadata = cursor . value ; var deleted = pouchdbMerge . isDeleted ( metadata ) ; metadata . deletedOrLocal = deleted ? "1" : "0" ; docStore . put ( metadata ) ; cursor . continue ( ) ; } else { callback ( ) ; } } ; }
migration to version 2 unfortunately "deletedOrLocal" is a misnomer now that we no longer store local docs in the main doc-store, but whaddyagonnado
migration to version 2 unfortunately deletedOrLocal is a misnomer now that we no longer store local docs in the main doc - store but whaddyagonnado