Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mounted () {
if (this.js) this.mdcRadio = MDCRadio.attachTo(this.$el)
},
beforeDestroy () {
reInstantiate () {
if (this.js) {
if (this.mdcRadio) {
this.mdcRadio.destroy()
}
MDCRadio.attachTo(this.$el)
} else {
if (this.js) {
this.mdcRadio.destroy()
}
this.mdcRadio = undefined
}
}
}