That sounds like a neat idea... You might be hitting the issue that if Bangle.#ontouch has one event handler it's stored just as the handler to save space, but if you have more than one it's an array - so you could instead check if it's an array first?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
That sounds like a neat idea... You might be hitting the issue that if
Bangle.#ontouch
has one event handler it's stored just as the handler to save space, but if you have more than one it's an array - so you could instead check if it's an array first?