Closed codepuncher closed 2 years ago
@codepuncher thanks for hacking on this
also wow i really did not think this worked but.. turns out context doesnt work the way i thought it did. but yeah this is bueno.
Side note: as long as your event handler is a method of your custom element, there is no need to manually bind it. When calling
addEventListener
, the value ofthis
inside the event handler is a reference to the element.
via https://open-wc.org/guides/knowledge/events/#on-your-elements
do you have an idea on why this fixes the duplicate iframe behavior?
I added a lil dirty check here as well, just to toughen things up.
do you have an idea on why this fixes the duplicate iframe behavior?
Honestly, no. But I wish I did!
Thanks for merging.
Fixes #92