Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.$nextTick(() => {
this.updateSlot()
this.mdcTab = MDCTab.attachTo(this.$el)
if (this.index !== -1) { // within
this.replaceTabInstance(this.mdcTab, this.index)
}
})
},
childList: true,
subtree: true
})
this.classObserver = new MutationObserver(() => this.updateActive())
this.classObserver.observe(this.$el, {
attributes: true
})
if (this.getTabInstance instanceof Function) { // within
this.$nextTick(() => {
[this.mdcTab, this.index] = this.getTabInstance(this.$el)
this.assignProperties()
this.updateSlot()
})
} else { // standalone tab
this.mdcTab = MDCTab.attachTo(this.$el)
}
},
beforeDestroy () {