*/
constructor(container) {
this._activeElement = null;
- this._comments = new Set();
+ this._comments = new WeakSet();
this._editorContainer = null;
this._container = container;
this.rebuild();
*/
constructor(container) {
super(container);
- this._responses = new Set();
+ this._responses = new WeakSet();
this.rebuildResponses();
Listener_1.default.add("Ui/Comment/Response/Edit_" + Util_1.default.identify(this._container), () => this.rebuildResponses());
}
class UiCommentEdit {
protected _activeElement: HTMLElement | null = null;
- protected readonly _comments = new Set<HTMLElement>();
+ protected readonly _comments = new WeakSet<HTMLElement>();
protected readonly _container: HTMLElement;
protected _editorContainer: HTMLElement | null = null;
}
class UiCommentResponseEdit extends UiCommentEdit {
- protected readonly _responses = new Set<HTMLElement>();
+ protected readonly _responses = new WeakSet<HTMLElement>();
/**
* Initializes the comment edit manager.