Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mounted() {
this.foundation = new MDCTabScrollerFoundation({
eventTargetMatchesSelector: (evtTarget, selector) => {
return matches(evtTarget, selector);
},
addClass: className => this.$set(this.classes, className, true),
removeClass: className => this.$delete(this.classes, className),
addScrollAreaClass: className =>
this.$set(this.areaClasses, className, true),
setScrollAreaStyleProperty: (prop, value) =>
this.$set(this.areaStyles, prop, value),
setScrollContentStyleProperty: (prop, value) =>
this.$set(this.contentStyles, prop, value),
getScrollContentStyleValue: propName =>
window.getComputedStyle(this.$refs.content).getPropertyValue(propName),
setScrollAreaScrollLeft: scrollX =>
(this.$refs.area.scrollLeft = scrollX),