accommodate different listeners for ShadowDOM polyfill compatibility (until window can listen to wrapper events)