Converting code to use the fastload properly #5476
Replies: 1 comment
-
Posted at 2022-12-13 by @gfwilliams Have you seen http://www.espruino.com/Bangle.js+Fast+Load ? I can see you're still defining Posted at 2022-12-13 by @thyttan EDIT: Gordon beat me to it. Posted at 2022-12-13 by Hank Sorry, still learning. How does this work if I want to pass something to the function?
will that be like
? Posted at 2022-12-13 by Hank Sorted it out. Looks if it is working so far. Thanks a million! Posted at 2022-12-13 by Hank Current code attached (the bottom one) . There seems to still be a memory leak issue. Any advice? Do I need to do something like
? Attachments: Posted at 2022-12-13 by @gfwilliams You shouldn't need to delete stuff if it was defined with Are you sure it's not modules? see http://www.espruino.com/Bangle.js+Fast+Load#testing-afterwards All I can suggest is to maybe look at |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-12-13 by Hank
Current code attached.
When I change
in Line 123,
it does work when I open the launcher from the watchface. But when I get back to the watchface and open the launcher AGAIN, drawTimeoutSeconds seems to be undefined (and the seconds run behind the launcher) and the Timeout doesn't get cleared.
Any suggestions what I'm doing wrong here?
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions