Revert this PR? https://github.com/espruino/BangleApps/pull/2369
Also I'm really wondering why the watchface is still loaded when the launcher is shown
You implemented the remove function, but presumably didn't actually manage to remove all of the stuff that the clock loaded in it? https://github.com/pebl-hank/BangleApps/blob/383f18f92facbf8a4ea44bad2f8ea9ce0f763f6a/apps/hworldclock/app.js#L305-L313
remove
There's info on implementing/testing here: http://www.espruino.com/Bangle.js+Fast+Load
Specifically handling stuff like drag is covered here: http://www.espruino.com/Bangle.js+Fast+Load#event-handlers
Although really for drag you should be using setUI({mode:"custom",clock:true,drag:...})
setUI({mode:"custom",clock:true,drag:...})
Best bet is just to not have the remove function for now, and then the clock will unload 'normally' and will get rid of all the changes.
@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.
Revert this PR? https://github.com/espruino/BangleApps/pull/2369
You implemented the
remove
function, but presumably didn't actually manage to remove all of the stuff that the clock loaded in it? https://github.com/pebl-hank/BangleApps/blob/383f18f92facbf8a4ea44bad2f8ea9ce0f763f6a/apps/hworldclock/app.js#L305-L313There's info on implementing/testing here: http://www.espruino.com/Bangle.js+Fast+Load
Specifically handling stuff like drag is covered here: http://www.espruino.com/Bangle.js+Fast+Load#event-handlers
Although really for drag you should be using
setUI({mode:"custom",clock:true,drag:...})
Best bet is just to not have the
remove
function for now, and then the clock will unload 'normally' and will get rid of all the changes.