Skip to content

Commit

Permalink
prefer this.init in Mode instances
Browse files Browse the repository at this point in the history
  • Loading branch information
gdh1995 authored Jan 13, 2022
1 parent 0c84cce commit 9ad814f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content_scripts/link_hints.js
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ var LocalHints = {
class TypingProtector extends Mode {
constructor(delay, callback) {
super();
super.init({
this.init({
name: "hint/typing-protector",
suppressAllKeyboardEvents: true,
keydown: resetExitTimer,
Expand All @@ -1236,7 +1236,7 @@ class TypingProtector extends Mode {
class WaitForEnter extends Mode {
constructor(callback) {
super();
super.init({
this.init({
name: "hint/wait-for-enter",
suppressAllKeyboardEvents: true,
indicator: "Hit <Enter> to proceed..."
Expand All @@ -1259,7 +1259,7 @@ class WaitForEnter extends Mode {
class HoverMode extends Mode {
constructor(link) {
super();
super.init({name: "hover-mode", singleton: "hover-mode", exitOnEscape: true});
this.init({name: "hover-mode", singleton: "hover-mode", exitOnEscape: true});
this.link = link;
DomUtils.simulateHover(this.link);
this.onExit(() => DomUtils.simulateUnhover(this.link));
Expand Down

0 comments on commit 9ad814f

Please sign in to comment.