Skip to content

Commit

Permalink
Fix: Amend click event (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
guywillis committed Jul 26, 2024
1 parent 14bf6a2 commit 4089f9c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions js/HintView.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ import notify from 'core/js/notify';

export default class HintView extends Backbone.View {

events() {
return {
'click .js-hint-btn-popup': 'onHintPopupClicked'
};
}

className() {
return 'hint';
}
Expand All @@ -19,9 +25,7 @@ export default class HintView extends Backbone.View {

setUpParentElement() {
this.$parentEl = $(`[data-adapt-id=${this.model.get('_id')}]`);
this.$parentEl
.on('click.js-hint-btn-popup', this.onHintPopupClicked)
.addClass('has-hint');
this.$parentEl.addClass('has-hint');
}

get $targetElement() {
Expand Down

0 comments on commit 4089f9c

Please sign in to comment.