aboutsummaryrefslogtreecommitdiff
path: root/ext/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-06-24 19:15:09 -0400
committerGitHub <noreply@github.com>2021-06-24 19:15:09 -0400
commit1878b118fb1f7caad5b5dbbb10c7ca36e9bc2d76 (patch)
tree3fe7779711bc70c071bc19a2bad6d2d8f2919d01 /ext/js
parent0556c503195fb274069817514ceaad9ed2f1c998 (diff)
Fix an incorrect return value of the EventDispatcher.off function (#1747)
Diffstat (limited to 'ext/js')
-rw-r--r--ext/js/core.js2
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) {