From 74fd9409d5bbcc30dd50b5a4a57b2c8a17533f72 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Mon, 29 Mar 2021 20:02:29 +0200 Subject: [PATCH] [HTML5] Fix WM notifications not being called. Regression from the library refactoring, binding and not calling is pretty useless 'o_o. (cherry picked from commit 01658adb3025e1127a2251d7d3da01f3a5b7c18d) --- platform/javascript/js/libs/library_godot_display.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/javascript/js/libs/library_godot_display.js b/platform/javascript/js/libs/library_godot_display.js index 99aa4793d92..00e6a016797 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); }); },