fix setting Doc.gc value in Doc's constructor

This commit is contained in:
calibr 2019-12-10 16:17:30 +02:00
parent d90c9b1cb2
commit 2b24af1269

View File

@ -27,7 +27,7 @@ export class Doc extends Observable {
*/
constructor (conf = {}) {
super()
this.gc = conf.gc || true
this.gc = typeof conf.gc !== 'undefined' ? conf.gc : true
this.clientID = random.uint32()
/**
* @type {Map<string, AbstractType<YEvent>>}