clock_info: remove save() kill handler on remove of clkinfo
parent
45a3f7e5d2
commit
f2c04fab5d
|
|
@ -337,6 +337,7 @@ exports.addInteractive = function(menu, options) {
|
||||||
// return an object with info that can be used to remove the info
|
// return an object with info that can be used to remove the info
|
||||||
options.remove = function() {
|
options.remove = function() {
|
||||||
save();
|
save();
|
||||||
|
E.removeListener("kill", save);
|
||||||
Bangle.removeListener("swipe",swipeHandler);
|
Bangle.removeListener("swipe",swipeHandler);
|
||||||
if (touchHandler) Bangle.removeListener("touch",touchHandler);
|
if (touchHandler) Bangle.removeListener("touch",touchHandler);
|
||||||
if (lockHandler) Bangle.removeListener("lock", lockHandler);
|
if (lockHandler) Bangle.removeListener("lock", lockHandler);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue