Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getDefaultFoundation() {
return new MDCTabBarScrollerFoundation({
addClass: (className) => this.root_.classList.add(className),
removeClass: (className) => this.root_.classList.remove(className),
eventTargetHasClass: (target, className) => target.classList.contains(className),
addClassToForwardIndicator: (className) => this.forwardIndicator_.classList.add(className),
removeClassFromForwardIndicator: (className) => this.forwardIndicator_.classList.remove(className),
addClassToBackIndicator: (className) => this.backIndicator_.classList.add(className),
removeClassFromBackIndicator: (className) => this.backIndicator_.classList.remove(className),
isRTL: () =>
getComputedStyle(this.root_).getPropertyValue('direction') === 'rtl',
registerBackIndicatorClickHandler: (handler) =>
this.backIndicator_.addEventListener('click', handler),
deregisterBackIndicatorClickHandler: (handler) =>
this.backIndicator_.removeEventListener('click', handler),
registerForwardIndicatorClickHandler: (handler) =>
this.forwardIndicator_.addEventListener('click', handler),
deregisterForwardIndicatorClickHandler: (handler) =>