diff --git a/js/assessmentResultsAudioView.js b/js/assessmentResultsAudioView.js index dfeb94d..39a150a 100644 --- a/js/assessmentResultsAudioView.js +++ b/js/assessmentResultsAudioView.js @@ -23,7 +23,10 @@ class AssessmentResultsAudioView extends ComponentView { }); if (Adapt.audio && Adapt.course.get('_audio')._isEnabled && this.model.get('_audioAssessment') && this.model.get('_audioAssessment')._isEnabled) { + this.audioIsEnabled = true; this.setupAudio(); + } else { + this.audioIsEnabled = false; } } @@ -78,6 +81,7 @@ class AssessmentResultsAudioView extends ComponentView { } onInview(event, visible, visiblePartX, visiblePartY) { + if (!this.audioIsEnabled) return; if (!visible) return; switch (visiblePartY) {