Merge pull request #399 from misfir3/develop
#351 - using listenToOnce to get rid of redundant calls
This commit is contained in:
commit
1ac305e9b9
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user