From 1878b118fb1f7caad5b5dbbb10c7ca36e9bc2d76 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Thu, 24 Jun 2021 19:15:09 -0400 Subject: Fix an incorrect return value of the EventDispatcher.off function (#1747) --- ext/js/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/js/core.js b/ext/js/core.js index 9b95c407..16d81b67 100644 --- a/ext/js/core.js +++ b/ext/js/core.js @@ -426,7 +426,7 @@ class EventDispatcher { */ off(eventName, callback) { const callbacks = this._eventMap.get(eventName); - if (typeof callbacks === 'undefined') { return true; } + if (typeof callbacks === 'undefined') { return false; } const ii = callbacks.length; for (let i = 0; i < ii; ++i) { -- cgit v1.2.3