Add addEventListener() and removeEventListener() methods
Author: grunsCreated May 20, 2019Updated Sep 12, 2024
Labelsenhancement
Currently event handlers can only be setup at initialization time in the
constructor's options parameter.
Instead, iFrameResizer should implement the standard EventTarget interface
with addEventListener(), removeEventListener(), and dispatchEvent() so 1)
iFrameResizer follows the standard JS events API and 2) event handling can
change dynamically.
Source: davidjbradshaw/iframe-resizer