You are reading a single comment by @Hank and its replies.
Click here to read the full conversation.
-
Searching the repository it seems to me that that logic works for other apps: https://github.com/espruino/BangleApps/search?q=%21%3D%3Dundefined
Does it work if you use
!=
instead of!==
?EDIT: Wait, drop the
typeof
like so:if (onDrag !== undefined) Bangle.removeListener('drag',onDrag);
Then I actually get