From b806bcf60d41ba62caec62ee392795febba5ee73 Mon Sep 17 00:00:00 2001 From: Akos Kitta Date: Mon, 13 Jun 2022 17:26:36 +0200 Subject: [PATCH] Bound the original handler to `this`. Closes #977 Signed-off-by: Akos Kitta --- .../src/browser/theia/core/application-shell.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arduino-ide-extension/src/browser/theia/core/application-shell.ts b/arduino-ide-extension/src/browser/theia/core/application-shell.ts index eff6a3a04..b9e0d4c67 100644 --- a/arduino-ide-extension/src/browser/theia/core/application-shell.ts +++ b/arduino-ide-extension/src/browser/theia/core/application-shell.ts @@ -130,5 +130,5 @@ DockPanel.prototype.handleEvent = function (event) { case 'p-drop': return; } - originalHandleEvent(event); + originalHandleEvent.bind(this)(event); };