mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(typescript): uniformly access all index sigs with index access. (#15523)
This is a follow up to https://github.com/angular/material2/pull/15206, with these two changes all of material in conforming. A build-time check to enforce this is part of tsetse - https://tsetse.info/property-renaming-safe but I don't know how to turn it on for this repositories bazel builds.
This commit is contained in:
committed by
Andrew Seguin
parent
962e303d82
commit
bd66e5c622
@@ -83,8 +83,8 @@ export class MatDialogClose implements OnInit, OnChanges {
|
||||
this.dialogResult = proxiedChange.currentValue;
|
||||
}
|
||||
|
||||
if (changes.ariaLabel) {
|
||||
this._hasAriaLabel = !!changes.ariaLabel.currentValue;
|
||||
if (changes['ariaLabel']) {
|
||||
this._hasAriaLabel = !!changes['ariaLabel'].currentValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -405,8 +405,8 @@ export class MatSelectionList extends _MatSelectionListMixinBase implements Focu
|
||||
}
|
||||
|
||||
ngOnChanges(changes: SimpleChanges) {
|
||||
const disableRippleChanges = changes.disableRipple;
|
||||
const colorChanges = changes.color;
|
||||
const disableRippleChanges = changes['disableRipple'];
|
||||
const colorChanges = changes['color'];
|
||||
|
||||
if ((disableRippleChanges && !disableRippleChanges.firstChange) ||
|
||||
(colorChanges && !colorChanges.firstChange)) {
|
||||
|
||||
Reference in New Issue
Block a user