From 2b24af12697d95d2602f86c43b8247b9816960ab Mon Sep 17 00:00:00 2001 From: calibr Date: Tue, 10 Dec 2019 16:17:30 +0200 Subject: [PATCH] fix setting Doc.gc value in Doc's constructor --- src/utils/Doc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Doc.js b/src/utils/Doc.js index 3cbdc48c..e697b55a 100644 --- a/src/utils/Doc.js +++ b/src/utils/Doc.js @@ -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>}