Commit 58ee0e6
committed
[FIX] smarter synthetic events
This commit fixes 2 behaviors regarding synthetic events:
- "non-bubbling" events (such as 'mouseenter', 'focus', etc.) are not
allowed anymore as synthetic events, since this would not work either
way;
- instead of an internal global variable to keep track of what events
have already been registered with synthetic event handlers, special keys
are now assigned on the document object. This has been done to avoid
duplicate listeners when multiple instances of Owl are spawned.1 parent fb7d25b commit 58ee0e6
File tree
2 files changed
+35
-6
lines changed- src/runtime/blockdom
- tests/compiler
2 files changed
+35
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| |||
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
91 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
92 | 109 | | |
93 | 110 | | |
94 | | - | |
| 111 | + | |
| 112 | + | |
95 | 113 | | |
96 | 114 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
101 | 119 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
578 | 589 | | |
579 | 590 | | |
0 commit comments