UNPKG

682 BJavaScriptView Raw
1// Copyright (c) Jupyter Development Team.
2// Distributed under the terms of the Modified BSD License.
3import { RankedMenu } from '@jupyterlab/ui-components';
4/**
5 * An extensible Edit menu for the application.
6 */
7export class EditMenu extends RankedMenu {
8 /**
9 * Construct the edit menu.
10 */
11 constructor(options) {
12 super(options);
13 this.undoers = new Set();
14 this.clearers = new Set();
15 this.goToLiners = new Set();
16 }
17 /**
18 * Dispose of the resources held by the edit menu.
19 */
20 dispose() {
21 this.undoers.clear();
22 this.clearers.clear();
23 super.dispose();
24 }
25}
26//# sourceMappingURL=edit.js.map
\No newline at end of file