Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getDefaultFoundation() {
// prettier-ignore
return new MDCSliderFoundation({
hasClass: helper.hasClass('rootProps', this),
addClass: helper.addClass('rootProps', this),
removeClass: helper.removeClass('rootProps', this),
getAttribute: helper.getAttr('rootProps', this),
setAttribute: helper.setAttr('rootProps', this),
removeAttribute: helper.rmAttr('rootProps', this),
computeBoundingRect: () => this.root_.getBoundingClientRect(),
getTabIndex: () => this.root_.tabIndex,
registerInteractionHandler: helper.registerHandler('rootProps', this),
deregisterInteractionHandler: helper.deregisterHandler('rootProps', this),
registerThumbContainerInteractionHandler: helper.registerHandler('thumbContainerProps', this),
deregisterThumbContainerInteractionHandler: helper.deregisterHandler('thumbContainerProps', this),
registerBodyInteractionHandler: helper.registerHandler(document.body),
deregisterBodyInteractionHandler: helper.deregisterHandler(document.body),
registerResizeHandler: helper.registerHandler(window, 'resize'),
deregisterResizeHandler: helper.deregisterHandler(window, 'resize'),