Discussion about this post

User's avatar
Jessica's avatar

Couldn't you have created an "empty" window object to represent it's a detached DOM, to avoid the NULL checks? I use empty objects in various projects to keep code simple. I even see this in stuff like .NET, with string.Empty.

Expand full comment

No posts