On Tue Nov 29 19:55:52 2022 +0000, Gabriel Ivăncescu wrote:
Unfortunately I don't think that would be correct, some documents have no window, and that's totally normal (for example those created with createHTMLDocument). Wouldn't events still need to work on them? How about using a single generic handler (HandleEvent) that obtains refs to the window, calls the specific specialized handler indirectly, and then releases the window? So it's done for all handlers from only one place.
Yes, that may work.