"Must be inside our own scope here so that, when we are unloaded, everything disappears." #5405
Unanswered
espruino-discuss2
asked this question in
Bangle.js
Replies: 1 comment
-
Posted at 2022-11-30 by user140377 Could be related to fast loading: http://www.espruino.com/Bangle.js+Fast+Load Posted at 2022-11-30 by arthurgleckler Thanks! Posted at 2022-11-30 by @gfwilliams 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. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Posted at 2022-11-30 by arthurgleckler
In
apps/antonclk/app.js
, this comment appears: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 likelet 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.
Beta Was this translation helpful? Give feedback.
All reactions