From 8824a0dc6075cc8f5e71fdaeda0b2f8a67531eee Mon Sep 17 00:00:00 2001 From: mertsincan Date: Tue, 29 Aug 2023 23:06:14 +0100 Subject: [PATCH] Refactor --- src/app/components/autocomplete/autocomplete.ts | 6 +++--- src/app/components/menu/menu.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/components/autocomplete/autocomplete.ts b/src/app/components/autocomplete/autocomplete.ts index c952f97c595..71a4c3b8fe3 100755 --- a/src/app/components/autocomplete/autocomplete.ts +++ b/src/app/components/autocomplete/autocomplete.ts @@ -651,9 +651,9 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr _suggestions: any; - onModelChange: Function = () => { }; + onModelChange: Function = () => {}; - onModelTouched: Function = () => { }; + onModelTouched: Function = () => {}; timeout: Nullable; @@ -1286,4 +1286,4 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr exports: [AutoComplete, OverlayModule, SharedModule, ScrollerModule, AutoFocusModule], declarations: [AutoComplete] }) -export class AutoCompleteModule { } +export class AutoCompleteModule {} diff --git a/src/app/components/menu/menu.ts b/src/app/components/menu/menu.ts index d47dc5d2a34..7c787dc1fc4 100755 --- a/src/app/components/menu/menu.ts +++ b/src/app/components/menu/menu.ts @@ -751,7 +751,7 @@ export class Menu implements OnDestroy { isItemHidden(item: any): boolean { if (item.separator) { - return item.visible === false || (item.items && item.items.some(subitem => subitem.visible !== false)); + return item.visible === false || (item.items && item.items.some((subitem) => subitem.visible !== false)); } return item.visible === false; }