Right now a call to instance.isCompleted() inside of a 'stop' handler would return false if invoked through instance.complete(). Should be marked as completed prior to event dispatch
const loop = new Animitter();
// will log out false
loop.on('stop', () => console.log(loop.isCompleted()));
loop.start();
// ...
loop.complete();
https://github.com/hapticdata/animitter/blob/master/index.js#L132-L137
user should be able to detect the loop was stopped from being completed from within a stop handler
Right now a call to
instance.isCompleted()inside of a'stop'handler would return false if invoked throughinstance.complete(). Should be marked as completed prior to event dispatchhttps://github.com/hapticdata/animitter/blob/master/index.js#L132-L137
user should be able to detect the loop was stopped from being completed from within a stop handler