Commit Graph

56 Commits

Author SHA1 Message Date
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
890be6c888 fix: stop maintaining observable index.d.ts alongside index.ts 2023-01-21 15:29:33 +09:00
shirakaba
b572da1e86 fix: simplify EventData typings, drop NotifyData 2023-01-21 15:29:33 +09:00
shirakaba
3dad494136 fix: downstream types and arg-passing 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
Nathan Walker
c9e29aa9af fix(core): improve loaded/unloaded handling to be stable and consistent (#10170) 2023-01-15 19:49:28 -08:00
farfromrefuge
0632215793 chore: eslint cleanup (#10160) 2023-01-09 09:40:20 -08:00
Nathan Walker
b147612e06 test: standardized jest unit testing (#10047) 2022-11-28 14:32:25 -08:00
Dimitris-Rafail Katsampas
bdade0f0d5 fix(core): errors get swallowed if thrown inside async event functions (#10030) 2022-09-27 16:57:11 -07:00
Dimitris-Rafail Katsampas
d82f3d990d fix(core): Added ObservableArray constructor declarations to allow setting multiple arguments (#9980) 2022-07-30 08:23:40 -07:00
Jason Cassidy
01643f513e fix(core): correct typings in ObservableArray (#9961) 2022-07-20 21:38:28 -07:00
Dimitris-Rafail Katsampas
df74a8baa8 feat(core): iterable ObservableArray (#9824)
BREAKING CHANGE:

Method push will now handle arguments just like Array.prototype.push.
Certain existing methods will now return ObservableArray instance instead.
Callback arguments that contained an array argument themselves will now contain an ObservableArray argument.
2022-07-09 10:09:43 -07:00
Nathan Walker
d589ac6000 fix(core): typings for Utils.queueMacrotask and static methods on Observable (#9425) 2021-05-28 14:06:12 -07:00
Nathan Walker
770030e7f6 feat(observable-array): findIndex now supported 2021-04-06 11:18:36 -07:00
Nathan Walker
a822f2affb chore: a11y polish (#9259) 2021-04-06 11:18:36 -07:00
matthewianmorgan
3ddfb5c34a fix(core): ObservableArray splice with start only (#9159) 2021-01-31 10:05:37 -08:00
Dimitris - Rafail Katsampas
5fe27428e0 feat(android): FlexboxLayout support for isPassThroughParentEnabled (#8798) 2021-01-29 13:03:27 -08:00
Martin Guillon
539fd1eb29 fix(core): notify object now optional (#9032) 2020-11-15 21:57:58 -08:00