Many thanks for the replies. @Ganblejs put me on the right track with listeners. Here's the working code...
var menu = { "" : { "title" : " Menu Test" }, "Do Nothing" : function() {}, "Close Menu" : function() { E.showMenu(); Bangle.on('touch', screenTouch); } }; function screenTouch() { Bangle.removeListener("touch", screenTouch); E.showMenu(menu); } g.clear(); E.showMenu(menu);
@CarlR started
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.
Many thanks for the replies. @Ganblejs put me on the right track with listeners. Here's the working code...