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 = {}) {
|
constructor (conf = {}) {
|
||||||
super()
|
super()
|
||||||
this.gc = conf.gc || true
|
this.gc = typeof conf.gc !== 'undefined' ? conf.gc : true
|
||||||
this.clientID = random.uint32()
|
this.clientID = random.uint32()
|
||||||
/**
|
/**
|
||||||
* @type {Map<string, AbstractType<YEvent>>}
|
* @type {Map<string, AbstractType<YEvent>>}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user