OO.ui.CheckboxInputWidget.prototype.restorePreInfuseState = function ( state ) {
    OO.ui.CheckboxInputWidget.super.prototype.restorePreInfuseState.call( this, state );
    if ( state.checked !== undefined && state.checked !== this.isSelected() ) {
        this.setSelected( state.checked );
    }