add override keyword
This commit is contained in:
parent
3de3481765
commit
1c06e36c1c
1 changed files with 5 additions and 5 deletions
|
@ -211,12 +211,12 @@ class TilesListView extends ListView<SimpleTile, TileView> {
|
||||||
this.onChanged = onChanged;
|
this.onChanged = onChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
onReset() {
|
override onReset() {
|
||||||
super.onReset();
|
super.onReset();
|
||||||
this.onChanged();
|
this.onChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
onUpdate(index: number, value: SimpleTile, param: any) {
|
override onUpdate(index: number, value: SimpleTile, param: any) {
|
||||||
if (param === "shape") {
|
if (param === "shape") {
|
||||||
const ExpectedClass = viewClassForEntry(value);
|
const ExpectedClass = viewClassForEntry(value);
|
||||||
const child = this.getChildInstanceByIndex(index);
|
const child = this.getChildInstanceByIndex(index);
|
||||||
|
@ -232,17 +232,17 @@ class TilesListView extends ListView<SimpleTile, TileView> {
|
||||||
this.onChanged();
|
this.onChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
onAdd(idx: number, value: SimpleTile) {
|
override onAdd(idx: number, value: SimpleTile) {
|
||||||
super.onAdd(idx, value);
|
super.onAdd(idx, value);
|
||||||
this.onChanged();
|
this.onChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
onRemove(idx: number, value: SimpleTile) {
|
override onRemove(idx: number, value: SimpleTile) {
|
||||||
super.onRemove(idx, value);
|
super.onRemove(idx, value);
|
||||||
this.onChanged();
|
this.onChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
onMove(fromIdx: number, toIdx: number, value: SimpleTile) {
|
override onMove(fromIdx: number, toIdx: number, value: SimpleTile) {
|
||||||
super.onMove(fromIdx, toIdx, value);
|
super.onMove(fromIdx, toIdx, value);
|
||||||
this.onChanged();
|
this.onChanged();
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue