Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(type: K, handler: SpecificEventListener) => {
const init = type === 'touchstart' ? applyPassive() : undefined;
this.thumbContainer.addEventListener(type, handler, init);
},
deregisterThumbContainerInteractionHandler:
(type: K, handler: SpecificEventListener) => {
const init = type === 'touchstart' ? applyPassive() : undefined;
this.mdcRoot.addEventListener(type, handler, init);
},
deregisterInteractionHandler:
registerResizeHandler: (handler: SpecificEventListener<'resize'>) =>
window.addEventListener('resize', handler, applyPassive()),
deregisterResizeHandler: (handler: SpecificEventListener<'resize'>) =>