JSideris / DOThtml

A human-friendly way to build highly-dynamic web pages in pure JavaScript.
2 stars 4 forks source link

Refactor events to use emitter pattern. #146

Open JSideris opened 1 year ago

JSideris commented 1 year ago

GPT helped define this.

https://chat.openai.com/share/d26b2731-a6e2-4a7f-b9f4-b5d8fc751771

image image image image
JSideris commented 4 months ago

We'll attach the event handlers inline per #177

JSideris commented 1 month ago

Update: #177 Won't work because we can no longer rely on component factories as this breaks the DI pattern. Component constructors can still accept arbitrary arguments. Maybe this problem is just something the user can handle on their own or through a third party extension. I'll take some time to think about how to proceed.