Class events bind and unbind

Everyhing works fine, except I can’t figure out how to unbind the events in stop(). Code updated class Resizable { go(drag_el, resize_el) { this.resize_el = resize_el; drag_el.addEventListener(“mousedown”, () => { window.addEventListener(“mousemove”, this.resize.bind(this)); window.addEventListener(“mouseup”, () => { window.removeEventListener(“mousemove”, this.resize.bind(this)); window.removeEventListener(“mouseup”, this.resize.bind(this)); }); }); } resize(e) { this.resize_el.style.width = e.clientX – this.resize_el.offsetLeft + “px”; } } A…

Details

Unable to compile GNU-EFI Program

I’ve followed one tutorial to study about UEFI shell Problem is when I try compile I get this which I don’t understand ERROR:`hello.c: In function ‘efi_main’: hello.c:8:10: warning: passing argument 1 of ‘Print’ from incompatible pointer type [-Wincompatible-pointer-types] Print(L”Hi,,,”); ^~~~~~~~ In file included from hello.c:2:0: /usr/local/include/efi/efilib.h:503:1: note: expected ‘const CHAR16 * {aka const short unsigned…

Details