Merge pull request #399 from misfir3/develop

#351 - using listenToOnce to get rid of redundant calls
This commit is contained in:
misfir3 2017-10-25 17:13:11 -06:00 committed by GitHub
commit 1ac305e9b9

View File

@ -74,7 +74,7 @@ define(['jquery',
this.loadLesson = function(name,pageNum) {
if (this.name === name) {
this.listenTo(this.lessonHintView, 'hints:showButton', this.onShowHintsButton);
this.listenToOnce(this.lessonHintView, 'hints:showButton', this.onShowHintsButton);
this.listenTo(this.lessonHintView, 'hints:hideButton', this.onHideHintsButton);
this.lessonContentView.navToPage(pageNum);
this.lessonHintView.hideHints();