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:
Rado Kirov
2019-03-20 13:56:49 -07:00
committed by Andrew Seguin
parent 962e303d82
commit bd66e5c622
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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;
}
}
}
+2 -2
View File
@@ -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)) {