Skip to content

Commit

Permalink
Merge pull request #8 from MichelFloyd/master
Browse files Browse the repository at this point in the history
Fixed #7
  • Loading branch information
remcoder committed May 31, 2015
2 parents 487c4eb + 531f808 commit d082cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remcoder:chronos.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function liveUpdate(interval) {
// make sure to stop and delete the attached timer when the computation is stopped
comp.onInvalidate(function() {
//console.log('onInvalidated',comp);
if (comp.stopped) {
if (comp.stopped && _timers[cid]) {
//console.log('computation stopped');
_timers[cid].destroy();
}
Expand Down

0 comments on commit d082cd7

Please sign in to comment.