I'd totally forgotten about the require(var) thing. Your bracket solution is much neater though - thanks for posting it up!
require(var)
The dialog solution is much neater - and probably not too painful to implement either... It could be useful for several other classes of warnings too.
@Gordon 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.
I'd totally forgotten about the
require(var)
thing. Your bracket solution is much neater though - thanks for posting it up!The dialog solution is much neater - and probably not too painful to implement either... It could be useful for several other classes of warnings too.