Skip to content

Commit

Permalink
Hadn't committed the relevant listener in the last commit, to fix the…
Browse files Browse the repository at this point in the history
… issue with course durations not being restored across sessions.
  • Loading branch information
danielghost committed Jul 17, 2020
1 parent 4bf8e07 commit d6f5317
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/stateModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ define([
'state:change': this.onTrackableStateChange
});

this.listenTo(Adapt.course, {
'change:_totalDuration': this.onDurationChange
});

this.listenTo(Adapt.contentObjects, {
'change:_totalDuration': this.onDurationChange
});
Expand Down

0 comments on commit d6f5317

Please sign in to comment.