minor bugfix

development
mcyph 2021-04-09 22:52:15 +10:00
parent f38e0b719d
commit 442918e33f
1 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ class mxEvent {
*
* Removes all listeners from the given element.
*/
static removeAllListenerselement() {
static removeAllListeners(element) {
const list = element.mxListenerList;
if (list != null) {
@ -267,7 +267,7 @@ class mxEvent {
*
* element - DOM node to remove the listeners from.
*/
static releaseelement() {
static release(element) {
try {
if (element != null) {
mxEvent.removeAllListeners(element);
@ -422,7 +422,7 @@ class mxEvent {
*
* Disables the context menu for the given element.
*/
static disableContextMenuelement() {
static disableContextMenu(element) {
mxEvent.addListener(element, 'contextmenu', evt => {
if (evt.preventDefault) {
evt.preventDefault();