Nice, thank you for pointers. This is all new to me - and I thought I knew a bit of javascript - shows how lazy can be when space and memory not at a premium!
Just the first of your suggestions - binding the onData function late only pushed the module size up marginally, but saved 32 jsvars! Looking at the commits now.
Apologies for momentarily hijacking this thread, I know this was a bit off topic. Thanks again.
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.
Nice, thank you for pointers. This is all new to me - and I thought I knew a bit of javascript - shows how lazy can be when space and memory not at a premium!
Just the first of your suggestions - binding the
onData
function late only pushed the module size up marginally, but saved 32 jsvars! Looking at the commits now.Apologies for momentarily hijacking this thread, I know this was a bit off topic. Thanks again.