Skip to content

Commit 55ee319

Browse files
Refactor
1 parent 39a7aed commit 55ee319

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Public/js/balloon.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,12 @@ export class Balloon {
99

1010
constructor() {
1111
this.balloon = document.createElement("div");
12-
13-
this.onmouseover = () => {};
14-
this.onmouseout = () => {};
15-
1612
this.init();
1713
}
1814

1915
init() {
2016
this.balloon.classList.add("d-none", "balloon-content");
2117
document.body.appendChild(this.balloon);
22-
23-
this.balloon.addEventListener("mouseenter", (event) => {
24-
event.preventDefault();
25-
event.stopPropagation();
26-
this.onmouseover(event);
27-
});
28-
this.balloon.addEventListener("mouseleave", (event) => {
29-
event.preventDefault();
30-
event.stopPropagation();
31-
this.onmouseout(event);
32-
});
3318
}
3419

3520
show(position) {

0 commit comments

Comments
 (0)