Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
update () {
if ((this.isToggleButton || this.isToggleButtonViaSlots) && typeof this.mdcIconButtonToggle === 'undefined') {
this.mdcIconButtonToggle = MDCIconButtonToggle.attachTo(this.$el)
this.mdcIconButtonToggle.on = this.value
}
if (this.isIconButton && typeof this.mdcRipple === 'undefined') {
this.mdcRipple = MDCRipple.attachTo(this.$el)
this.mdcRipple.unbounded = true
}
}
}