summaryrefslogtreecommitdiff
path: root/platform/javascript/js/libs
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-03-29 20:02:29 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-03-29 20:11:19 +0200
commit01658adb3025e1127a2251d7d3da01f3a5b7c18d (patch)
tree9b4d3d1a10c52c7383b76327e2ce2488a6158e3c /platform/javascript/js/libs
parent2f2e4d65242058c08de045ba65345a9245dd5f24 (diff)
[HTML5] Fix WM notifications not being called.
Regression from the library refactoring, binding and not calling is pretty useless 'o_o.
Diffstat (limited to 'platform/javascript/js/libs')
-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);
});
},