@@ -59,10 +59,11 @@ export const MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR: any = {
5959
6060/** Change event object emitted by MatRadio and MatRadioGroup. */
6161export class MatRadioChange {
62- /** The MatRadioButton that emits the change event. */
63- source : MatRadioButton | null ;
64- /** The value of the MatRadioButton. */
65- value : any ;
62+ constructor (
63+ /** The MatRadioButton that emits the change event. */
64+ public source : MatRadioButton ,
65+ /** The value of the MatRadioButton. */
66+ public value : any ) { }
6667}
6768
6869
@@ -262,10 +263,7 @@ export class MatRadioGroup extends _MatRadioGroupMixinBase
262263 /** Dispatch change event with current selection and group value. */
263264 _emitChangeEvent ( ) : void {
264265 if ( this . _isInitialized ) {
265- const event = new MatRadioChange ( ) ;
266- event . source = this . _selected ;
267- event . value = this . _value ;
268- this . change . emit ( event ) ;
266+ this . change . emit ( new MatRadioChange ( this . _selected ! , this . _value ) ) ;
269267 }
270268 }
271269
@@ -549,10 +547,7 @@ export class MatRadioButton extends _MatRadioButtonMixinBase
549547
550548 /** Dispatch change event with current value. */
551549 private _emitChangeEvent ( ) : void {
552- const event = new MatRadioChange ( ) ;
553- event . source = this ;
554- event . value = this . _value ;
555- this . change . emit ( event ) ;
550+ this . change . emit ( new MatRadioChange ( this , this . _value ) ) ;
556551 }
557552
558553 _isRippleDisabled ( ) {
0 commit comments