fix setting Doc.gc value in Doc's constructor
This commit is contained in:
parent
d90c9b1cb2
commit
2b24af1269
@ -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>>}
|
||||
|
Loading…
x
Reference in New Issue
Block a user