MCPcopy Index your code
hub / github.com/share/sharedb / callback

Function callback

test/middleware.js:673–680  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

671
672 var count = 0;
673 var callback = function() {
674 count++;
675 if (count !== 2) return;
676 expect(doc.data).to.eql({name: 'fixup'});
677 expect(remoteDoc.data).to.eql(doc.data);
678 expect(doc.version).to.equal(remoteDoc.version);
679 done();
680 };
681
682 doc.submitOp([{p: ['name', 0], si: 'foo'}], function(error) {
683 if (error) return done(error);

Callers 9

callbackAfterFunction · 0.70
util.jsFile · 0.70
pubsub-memory.jsFile · 0.70
submitFunction · 0.70
milestone-db.jsFile · 0.70
middleware.jsFile · 0.70
db-memory.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…