• In apps/antonclk/app.js, this comment appears:

    Must be inside our own scope here so that, when we are unloaded, everything disappears.

    Does anyone know what that means, exactly? In the previous version of the clock, that comment appeared, and the functions inside it were declared using the usual function foo() { syntax, which made the IDE complain. Now they're all defined like let foo = function() {, which makes the IDE stop complaining, but I don't understand the reason for the containing block.

    I apologize if I missed this somewhere obvious in the documentation.

  • Could be related to fast loading: http://www.espruino.com/Bangle.js+Fast+Load

  • Thanks!

  • Hi - yes, it's definitely the 'fast load' stuff. It means we have to be a bit more careful about how things are defined - but it can be worth it if you want to make sure you get a nice quick switch between your clock and the launcher.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

"Must be inside our own scope here so that, when we are unloaded, everything disappears."

Posted by Avatar for arthurgleckler @arthurgleckler

Actions