pebble / pebblejs

Program the Pebble with simply JavaScript
MIT License
455 stars 229 forks source link

Wakeup not discarding itself or cancelling #179

Open TheConsciousness opened 8 years ago

TheConsciousness commented 8 years ago

I had a Wakeup scheduled for 5 minutes from the time of scheduling. I happened to have the screen on when the Wakeup was meant to fire, so it missed its wakeup time. Now there is a Wakeup scheduled for an hour ago that is still looming in memory.

I've tried to: Wakeup.each(function(e) { Wakeup.cancel(e); Wakeup.cancel(e.id); console.log(e.id + " canceled"); }); Wakeup.cancel('all'); Each time this is called, I am returned the Wakeup's ID, so I know it is still there. How do I go about removing this Wakeup from memory?