Skip to content

Commit

Permalink
Fixes a bug where the timer wasn't updated when cancel was hit.
Browse files Browse the repository at this point in the history
  • Loading branch information
camilopayan committed Jul 26, 2015
1 parent 8849259 commit 2e02e88
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/services/pomTimerService.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ function($timeout, $log){
clearTimeout();
pom.state = "POMODORO";
pom.timeLeft = settings.pomTime;
angular.forEach(callbacks.tick, function(callback){
callback();
});

angular.forEach(callbacks.phase, function(callback){
callback();
});
};
PomTimer.registerTickCallback = function( callback ){
callbacks.tick.push(callback);
Expand Down

0 comments on commit 2e02e88

Please sign in to comment.