As with typical javascript you would not override an existing one by adding a new one. Much like setTimeout etc they all usually return an id pointing to the callback itself. This is also the way jQuery works (whether or not you like it; it's the way most people know callbacks especially in the global sense.
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.
As with typical javascript you would not override an existing one by adding a new one. Much like setTimeout etc they all usually return an id pointing to the callback itself. This is also the way jQuery works (whether or not you like it; it's the way most people know callbacks especially in the global sense.
EDIT: @Gordon I'm also in favor of
E
. I guessglobal.init
is kind of old. 13.799 ± 0.021 billion years old in fact.