Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
deregisterInteractionHandler: (evtType, handler) => this.unlisten(evtType, handler, applyPassive()),
registerThumbContainerInteractionHandler: (evtType, handler) => {
deregisterInteractionHandler: (type, handler) => {
this.$el.removeEventListener(type, handler, applyPassive());
},
registerThumbContainerInteractionHandler: (type, handler) => {
registerThumbContainerInteractionHandler: (type, handler) => {
this.$refs.thumbContainer.addEventListener(
type,
handler,
applyPassive(),
);
},
deregisterThumbContainerInteractionHandler: (type, handler) => {
registerInteractionHandler: (evtType: EventType, handler: EventListener) => {
this.nativeControl_.addEventListener(evtType, handler, applyPassive());
},
removeClass: (className: string) => rippleSurface.classList.remove(className),
this.mdcFoundation) as EventListener;
this.boundLayout = () => {
if (this.open) {
this.mdcFoundation.layout.bind(this.mdcFoundation);
}
};
this.boundHandleKeydown = this.mdcFoundation.handleKeydown.bind(
this.mdcFoundation) as EventListener;
this.boundHandleDocumentKeydown =
this.mdcFoundation.handleDocumentKeydown.bind(this.mdcFoundation) as
EventListener;
this.mdcRoot.addEventListener('click', this.boundHandleClick);
window.addEventListener('resize', this.boundLayout, applyPassive());
window.addEventListener(
'orientationchange', this.boundLayout, applyPassive());
this.addEventListener('keydown', this.boundHandleKeydown, applyPassive());
document.addEventListener(
'keydown', this.boundHandleDocumentKeydown, applyPassive());
}
deregisterDocumentInteractionHandler: (evtType, handler) =>
document.documentElement.removeEventListener(
evtType,
handler,
applyPassive(),
),
deregisterInteractionHandler: (evt, handler) => {
registerThumbContainerInteractionHandler: function (evtType, handler) {
_this.thumbContainer_.addEventListener(evtType, handler, applyPassive());
},
deregisterThumbContainerInteractionHandler: function (evtType, handler) {
deregisterInputInteractionHandler: (evtType, handler) => {
this.$refs.input.removeEventListener(
evtType,
handler,
applyPassive(),
);
},
getNativeInput: () => {
destroy() {
super.destroy();
this.area_.removeEventListener('wheel', this.handleInteraction_, applyPassive());
this.area_.removeEventListener('touchstart', this.handleInteraction_, applyPassive());
this.area_.removeEventListener('pointerdown', this.handleInteraction_, applyPassive());
this.area_.removeEventListener('mousedown', this.handleInteraction_, applyPassive());
this.area_.removeEventListener('keydown', this.handleInteraction_, applyPassive());
this.content_.removeEventListener('transitionend', this.handleTransitionEnd_);
}
var adapter = tslib_1.__assign({}, MDCRipple.createAdapter(this), { deregisterInteractionHandler: function (evtType, handler) { return _this.nativeControl_.removeEventListener(evtType, handler, applyPassive()); }, isSurfaceActive: function () { return matches(_this.nativeControl_, ':active'); }, isUnbounded: function () { return true; }, registerInteractionHandler: function (evtType, handler) { return _this.nativeControl_.addEventListener(evtType, handler, applyPassive()); } });
return new MDCRipple(this.root_, new MDCRippleFoundation(adapter));