@allObjects passing null for the function produces
Uncaught TypeError: Second argument to EventEmitter.on(..) must be a function or a String (containing code)
And I do not want to provide a dummy function, since removing an event handler may (now or later) be used for internal optimization (as no handler has to be called if none has been provided)
@Gordon great, thank you! Is there also a possibility to uninstall a specific handler only?
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.
@allObjects passing
null
for the function producesAnd I do not want to provide a dummy function, since removing an event handler may (now or later) be used for internal optimization (as no handler has to be called if none has been provided)
@Gordon great, thank you! Is there also a possibility to uninstall a specific handler only?