Skip to content

Commit

Permalink
fix(common): NgForIn should not call super hooks if not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
trotyl committed Apr 23, 2018
1 parent ec3bd09 commit 6f377e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/common/for-in/for-in.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export class NgForIn extends NgForOf<string> implements DoCheck, OnChanges {
changes['ngForOf'] = new SimpleChange(this.previousKeys, keys, change.isFirstChange());
this.previousKeys = keys;
}
super.ngOnChanges(changes);
if (super.ngOnChanges) {
super.ngOnChanges(changes);
}
}

ngDoCheck(): void {
Expand Down

0 comments on commit 6f377e6

Please sign in to comment.