pebble / pebblejs

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

Move initial dequeuing from animate to queue function. #168

Open trautonen opened 8 years ago

trautonen commented 8 years ago

When queuing custom operations with no ongoing animation or when the element is idle, nothing happens. This change ensures that you can initialize the queue with a custom callback and it starts dequeuing the animation queue properly.

This comes handy for example when you want to hide or show a window after an animation is finished or when the element is not doing any animations.