diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-06-24 19:15:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-24 19:15:09 -0400 |
commit | 1878b118fb1f7caad5b5dbbb10c7ca36e9bc2d76 (patch) | |
tree | 3fe7779711bc70c071bc19a2bad6d2d8f2919d01 | |
parent | 0556c503195fb274069817514ceaad9ed2f1c998 (diff) |
Fix an incorrect return value of the EventDispatcher.off function (#1747)
-rw-r--r-- | ext/js/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |