mirror of
/repos/Prototyper.git
synced 2026-02-27 16:12:00 +01:00
trying to figure out why i see inconsistent share open results..
This commit is contained in:
@@ -501,14 +501,6 @@ function loadLocation(location, callback) {
|
||||
debug && console.log('opened location', location.collection, location.name, doc, doc.snapshot, doc.state);
|
||||
if (doc.snapshot == null) {
|
||||
debug && console.log('wait for first change', location, doc.version);
|
||||
doc.once('opening', function onceOpening() {
|
||||
debug && console.log('received first opening', location, doc.snapshot);
|
||||
//callback(null, doc);
|
||||
});
|
||||
doc.once('open', function onceOpen() {
|
||||
debug && console.log('received first open', location, doc.snapshot);
|
||||
//callback(null, doc);
|
||||
});
|
||||
doc.once('change', function onceChange() {
|
||||
debug && console.log('received first change', location, doc.snapshot);
|
||||
callback(null, doc);
|
||||
|
||||
Reference in New Issue
Block a user