Skip to content

Commit d30a925

Browse files
committed
Properly set infospan mouse listeners
1 parent cb54e4a commit d30a925

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/content.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ module Content {
1616
public constructor() {
1717
this.span.className = "__regexp_search_count";
1818

19-
this.span.addEventListener('mouseover', function(event) {
19+
this.span.addEventListener('mouseover', (event) => {
2020
this.span.style.opacity = "0";
2121
});
22-
this.span.addEventListener('mouseout', function(event) {
22+
this.span.addEventListener('mouseout', (event) => {
2323
this.span.style.opacity = "1";
2424
});
2525
}

0 commit comments

Comments
 (0)