Bound the original handler to this.

Closes #977

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
This commit is contained in:
Akos Kitta 2022-06-13 17:26:36 +02:00 committed by Akos Kitta
parent 4c6243176c
commit a9aac0dbb0

View File

@ -130,5 +130,5 @@ DockPanel.prototype.handleEvent = function (event) {
case 'p-drop':
return;
}
originalHandleEvent(event);
originalHandleEvent.bind(this)(event);
};