summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-03-29 21:08:43 +0200
committerGitHub <noreply@github.com>2021-03-29 21:08:43 +0200
commit76a2e764689b0cd333ff2a2139b5ea671ce9b321 (patch)
tree9b4d3d1a10c52c7383b76327e2ce2488a6158e3c
parent2f2e4d65242058c08de045ba65345a9245dd5f24 (diff)
parent01658adb3025e1127a2251d7d3da01f3a5b7c18d (diff)
Merge pull request #47466 from Faless/js/4.x_notification_call_fix
[HTML5] Fix WM notifications not being called.
-rw-r--r--platform/javascript/js/libs/library_godot_display.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/javascript/js/libs/library_godot_display.js b/platform/javascript/js/libs/library_godot_display.js
index 99aa4793d9..00e6a01679 100644
--- a/platform/javascript/js/libs/library_godot_display.js
+++ b/platform/javascript/js/libs/library_godot_display.js
@@ -858,7 +858,7 @@ const GodotDisplay = {
const notif = [p_enter, p_exit, p_in, p_out];
['mouseover', 'mouseleave', 'focus', 'blur'].forEach(function (evt_name, idx) {
GodotDisplayListeners.add(canvas, evt_name, function () {
- func.bind(null, notif[idx]);
+ func(notif[idx]);
}, true);
});
},