mirror of
/repos/Prototyper.git
synced 2025-12-30 06:31:32 +01:00
trying to figure out why i see inconsistent share open results..
This commit is contained in:
parent
66514f91a2
commit
d091afe983
@ -7,6 +7,11 @@ set -e
|
||||
current_dir=$(cd $(dirname $0) && pwd)
|
||||
cd ${current_dir}
|
||||
|
||||
# patch ShareJS client
|
||||
if [ ! -f ./node_modules/share/webclient/share.js_orig ]; then
|
||||
sed -e s/removeListener/removeDocListener/g -i _orig ./node_modules/share/webclient/share.js
|
||||
sed -e s/removeListener/removeDocListener/g -i _orig ./node_modules/share/webclient/share.uncompressed.js
|
||||
fi
|
||||
# Knockout
|
||||
mkdir -p ./public/lib/knockout
|
||||
cd ./public/lib/knockout
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user