Skip to content

Commit

Permalink
Merge pull request WebGoat#399 from misfir3/develop
Browse files Browse the repository at this point in the history
WebGoat#351 - using listenToOnce to get rid of redundant calls
  • Loading branch information
misfir3 authored Oct 25, 2017
2 parents 74218de + c6f1c5c commit 1ac305e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1ac305e

Please sign in to comment.