1
0
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:
Aiko Mastboom
2013-04-26 11:54:15 +02:00
parent 66514f91a2
commit d091afe983
2 changed files with 5 additions and 8 deletions

View File

@@ -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);