From b85be98f1fb191bcb9843079b972d4b3f0e2d0be Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Sun, 28 Apr 2024 16:59:44 +0800 Subject: [PATCH] remove onclick Onclick will not work under its scope; it needs to access the created popup to show it. --- scripts/GUI/entrypoints/menu.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/scripts/GUI/entrypoints/menu.js b/scripts/GUI/entrypoints/menu.js index 5b40618..978f9e6 100644 --- a/scripts/GUI/entrypoints/menu.js +++ b/scripts/GUI/entrypoints/menu.js @@ -21,11 +21,4 @@ export default class MenuEntry { disable () { this.menu.remove(); } - - /* - The onclick event - */ - onclick() { - this.menu.trigger(); - }; } \ No newline at end of file