Merge pull request #306 from zupzup/issue_302_double_calls_on_submit

Issue #302: Fix redundant calls to lessonoverview.mvc and lessonmenu.…
This commit is contained in:
misfir3 2017-01-09 15:00:55 -05:00 committed by GitHub
commit ad3599f6af

View File

@ -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();