From d3f6e846c6e8173b97051e8c494b515e40be4bac Mon Sep 17 00:00:00 2001 From: Gregorio Galante Date: Tue, 4 Jun 2024 18:27:25 +0200 Subject: [PATCH 1/2] Update index.js Added this.emit = Events.emit to add possibility to emit custom events from outside the Inspector class. --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index 79d7c925..2555a6ac 100644 --- a/src/index.js +++ b/src/index.js @@ -18,6 +18,7 @@ function Inspector() { this.isFirstOpen = true; this.modules = {}; this.on = Events.on; + this.emit = Events.emit; this.opened = false; // Wait for stuff. From ff3e0e4fb563e93fc923613ef144a88c4fafdc24 Mon Sep 17 00:00:00 2001 From: Gregorio Galante Date: Tue, 4 Jun 2024 19:26:27 +0200 Subject: [PATCH 2/2] Added off on Inspector function --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index 2555a6ac..45e5340e 100644 --- a/src/index.js +++ b/src/index.js @@ -19,6 +19,7 @@ function Inspector() { this.modules = {}; this.on = Events.on; this.emit = Events.emit; + this.off = Events.off; this.opened = false; // Wait for stuff.