Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getDefaultFoundation() {
// prettier-ignore
return new MDCCheckboxFoundation({
addClass: helper.addClass('rootProps', this),
removeClass: helper.removeClass('rootProps', this),
registerAnimationEndHandler: helper.registerHandler('rootProps', this, 'animationend'),
deregisterAnimationEndHandler: helper.deregisterHandler('rootProps', this, 'animationed'),
registerChangeHandler: helper.registerHandler('nativeCbProps', this, 'change'),
deregisterChangeHandler: helper.deregisterHandler('nativeCbProps', this, 'change'),
getNativeControl: () => this.nativeCb_,
forceLayout: () => this.root_.offsetWidth,
isAttachedToDOM: helper.isAttachedToDOM('root', this),
})
}
constructor(props) {
super(props);
this.adapter = new FoundationAdapter();
this.foundation = new MDCCheckboxFoundation(this.adapter.toObject());
}