|
1 |
| -/** |
2 |
| - * Copyright (c) 2006-2015, JGraph Ltd |
3 |
| - * Copyright (c) 2006-2015, Gaudenz Alder |
4 |
| - * Updated to ES9 syntax by David Morrissey 2021 |
5 |
| - * Type definitions from the typed-mxgraph project |
6 |
| - */ |
| 1 | +/* |
| 2 | +Copyright 2021-present The maxGraph project Contributors |
| 3 | +Copyright (c) 2006-2015, JGraph Ltd |
| 4 | +Copyright (c) 2006-2015, Gaudenz Alder |
| 5 | +
|
| 6 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | +you may not use this file except in compliance with the License. |
| 8 | +You may obtain a copy of the License at |
| 9 | +
|
| 10 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +
|
| 12 | +Unless required by applicable law or agreed to in writing, software |
| 13 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | +See the License for the specific language governing permissions and |
| 16 | +limitations under the License. |
| 17 | +*/ |
| 18 | + |
7 | 19 | import EventSource from '../view/event/EventSource';
|
8 | 20 | import { fit, getDocumentScrollOrigin } from '../util/styleUtils';
|
9 | 21 | import EventObject from '../view/event/EventObject';
|
@@ -382,7 +394,7 @@ class MaxPopupMenu extends EventSource implements Partial<PopupMenuItem> {
|
382 | 394 | * @param force Optional boolean to ignore <smartSeparators>. Default is false.
|
383 | 395 | */
|
384 | 396 | addSeparator(parent: PopupMenuItem | null=null, force = false) {
|
385 |
| - // Defaults to this instance if no parent (submenu) specified, but |
| 397 | + // Defaults to this instance if no parent (submenu) specified, but |
386 | 398 | // all the necessary DOM elements are present as in PopupMenuItem
|
387 | 399 | parent = <PopupMenuItem>(parent || this);
|
388 | 400 |
|
|
0 commit comments