Skip to content

Commit 2d3db3a

Browse files
committed
Remove extra code
1 parent 98bbf29 commit 2d3db3a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/dialog/dialog.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,7 @@ export class Dialog implements OnInit, AfterViewInit, OnDestroy {
307307
* @memberof Dialog
308308
*/
309309
ngOnDestroy() {
310-
if (this.resizeSubscription) {
311-
this.resizeSubscription.unsubscribe();
312-
}
310+
this.resizeSubscription.unsubscribe();
313311
this.scrollSubscription.unsubscribe();
314312
}
315313
}

src/dialog/tooltip/tooltip.directive.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ export class TooltipDirective extends DialogDirective {
8989

9090
@HostListener("keydown", ["$event"])
9191
onKeydown(event: KeyboardEvent) {
92-
console.log(event.key);
9392
if (this.trigger === "click" && (event.key === "Enter" || event.key === " " )) {
9493
this.open();
9594
}

0 commit comments

Comments
 (0)