Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 80e92de

Browse files
author
Narciso Jaramillo
committed
Fix cases where we assign an object to a prototype member globally instead of in constructor
1 parent 23f4531 commit 80e92de

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/editor/Editor.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ define(function (require, exports, module) {
212212
// (if makeMasterEditor, we attach the Doc back to ourselves below once we're fully initialized)
213213

214214
this._inlineWidgets = [];
215+
this._inlineWidgetQueues = {};
216+
this._hideMarks = [];
217+
215218
this._$messagePopover = null;
216219

217220
// Editor supplies some standard keyboard behavior extensions of its own
@@ -1984,14 +1987,14 @@ define(function (require, exports, module) {
19841987
* @type {Object}
19851988
* Promise queues for inline widgets being added to a given line.
19861989
*/
1987-
Editor.prototype._inlineWidgetQueues = {};
1990+
Editor.prototype._inlineWidgetQueues = null;
19881991

19891992
/**
19901993
* @private
19911994
* @type {Array}
19921995
* A list of objects corresponding to the markers that are hiding lines in the current editor.
19931996
*/
1994-
Editor.prototype._hideMarks = [];
1997+
Editor.prototype._hideMarks = null;
19951998

19961999
/**
19972000
* @private

0 commit comments

Comments
 (0)