shirakaba
|
9a0717b988
|
fix: update unstable_currentEvent correctly
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
d0e522f8f0
|
fix: get listeners afresh each time
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
6cb8a83c82
|
fix: don't share eventPath
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
23961af38d
|
fix: update this.currentTarget
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
959f0a2204
|
fix: swap spread for slice
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
d3d6830813
|
fix: ditch MutationSensitiveArray
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
2a8c926509
|
fix: move cheaper check in front
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
decccabd9e
|
fix: assign variables as late as possible
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
569b1f2de3
|
fix: determine insertion function up-front
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
8b5efc1346
|
chore: audit usages of bind()
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
a87e828a64
|
fix: don't make an object unnecessarily
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
c58328a096
|
chore: reorder class members
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
7936154b2d
|
fix: declare uninitialised fields (for strict TypeScript)
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
b4f69987ae
|
chore: comment
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
1f3a62c3fb
|
fix: convert property bag to args
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
253d313776
|
chore: use static constants for readability (no perf difference)
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
0513789904
|
fix: lazily bind context to removeEventListener callbacks
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
ab56e114ea
|
fix: C for loop instead of for...of
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
eb8020a90c
|
fix: apply -> call
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
08bc87b059
|
fix: convert property bag to individual args
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
13c29db06e
|
fix: declare reset on prototype
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
96e53c6a43
|
fix: declare onCurrentListenersMutation on prototype
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
d8b83e46e3
|
fix: combine splice-and-push into just splice
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
afa78dd85f
|
fix: use simple properties instead of setters
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
89f94b55c3
|
fix: assign directly to prototype where possible
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
f08d122add
|
fix: avoid creating functions on each handleEvent() call
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
66f62fbbd6
|
fix: recycle eventPath
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
efb1a93287
|
fix: avoid unnecessary usage of Array.prototype.reverse()
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
217cd78114
|
fix: simplify MutationSensitiveArray listener system
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
95f9c44441
|
fix: lazy-clone listeners array
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
f58d7437e4
|
fix: optimise syntax used within handleEvent()
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
fe60cfac04
|
fix: accidental reference to event rather than this
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
0fe149c9e1
|
feat: implement Event and EventTarget
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
832595281f
|
chore: tests
|
2023-01-21 15:29:33 +09:00 |
|
shirakaba
|
7a276df09c
|
feat: DOM events
BREAKING CHANGE
|
2023-01-21 15:29:33 +09:00 |
|