|
|
@ -51,8 +51,6 @@ define([
|
|
|
|
// make sure configuration is defined
|
|
|
|
// make sure configuration is defined
|
|
|
|
config = config || {};
|
|
|
|
config = config || {};
|
|
|
|
|
|
|
|
|
|
|
|
var doc = config.doc || null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var allMessages = [];
|
|
|
|
var allMessages = [];
|
|
|
|
var initializing = true;
|
|
|
|
var initializing = true;
|
|
|
|
var recoverableErrorCount = 0; // unused
|
|
|
|
var recoverableErrorCount = 0; // unused
|
|
|
@ -107,8 +105,6 @@ define([
|
|
|
|
// we're fully synced
|
|
|
|
// we're fully synced
|
|
|
|
initializing = false;
|
|
|
|
initializing = false;
|
|
|
|
|
|
|
|
|
|
|
|
// execute an onReady callback if one was supplied
|
|
|
|
|
|
|
|
// FIXME this should be once the chain has synced
|
|
|
|
|
|
|
|
if (config.onReady) {
|
|
|
|
if (config.onReady) {
|
|
|
|
config.onReady({
|
|
|
|
config.onReady({
|
|
|
|
realtime: realtime
|
|
|
|
realtime: realtime
|
|
|
|