Issue #302: Fix redundant calls to lessonoverview.mvc and lessonmenu.mvc on submission
This commit is contained in:
parent
fe4f568fc0
commit
40f1d58796
@ -64,6 +64,8 @@ define(['jquery',
|
||||
this.listenTo(this.lessonContent,'content:loaded',this.onContentLoaded);
|
||||
this.userAndInfoView = new UserAndInfoView();
|
||||
this.menuButtonView = new MenuButtonView();
|
||||
this.listenTo(this.lessonContentView, 'lesson:complete', this.updateMenu);
|
||||
this.listenTo(this.lessonContentView, 'lesson:complete', this.updateLessonOverview);
|
||||
};
|
||||
|
||||
this.loadLesson = function(name,pageNum) {
|
||||
@ -104,8 +106,6 @@ define(['jquery',
|
||||
this.listenTo(this.helpControlsView,'source:show',this.hideShowHelps);
|
||||
this.listenTo(this.helpControlsView,'lesson:restart',this.restartLesson);
|
||||
this.listenTo(this.developerControlsView, 'dev:labels', this.restartLesson);
|
||||
this.listenTo(this.lessonContentView, 'lesson:complete', this.updateMenu)
|
||||
this.listenTo(this.lessonContentView, 'lesson:complete', this.updateLessonOverview)
|
||||
this.listenTo(this,'hints:show',this.onShowHints);
|
||||
|
||||
this.helpControlsView.render();
|
||||
|
Loading…
x
Reference in New Issue
Block a user