Codebase improvements

This commit is contained in:
Sercan Yemen 2018-05-29 15:07:13 +03:00
parent 70d895c6ed
commit 387077882b
2 changed files with 13 additions and 7 deletions

View File

@ -16,7 +16,7 @@ export class FuseSearchBarComponent implements OnInit, OnDestroy
toolbarColor: string;
@Output()
onInput: EventEmitter<any> = new EventEmitter();
onInput: EventEmitter<any>;
// Private
private _unsubscribeAll: Subject<any>;
@ -31,6 +31,7 @@ export class FuseSearchBarComponent implements OnInit, OnDestroy
)
{
// Set the defaults
this.onInput = new EventEmitter();
this.collapsed = true;
// Set the private defaults

View File

@ -15,11 +15,11 @@ import { FuseConfigService } from '@fuse/services/config.service';
})
export class FuseShortcutsComponent implements OnInit, OnDestroy
{
shortcutItems: any[] = [];
shortcutItems: any[];
navigationItems: any[];
filteredNavigationItems: any[];
searching = false;
mobileShortcutsPanelActive = false;
searching: boolean;
mobileShortcutsPanelActive: boolean;
toolbarColor: string;
@Input()
@ -45,14 +45,19 @@ export class FuseShortcutsComponent implements OnInit, OnDestroy
* @param {ObservableMedia} _observableMedia
*/
constructor(
private _renderer: Renderer2,
private _cookieService: CookieService,
private _fuseConfigService: FuseConfigService,
private _fuseMatchMediaService: FuseMatchMediaService,
private _fuseNavigationService: FuseNavigationService,
private _fuseConfigService: FuseConfigService,
private _observableMedia: ObservableMedia
private _observableMedia: ObservableMedia,
private _renderer: Renderer2
)
{
// Set the defaults
this.shortcutItems = [];
this.searching = false;
this.mobileShortcutsPanelActive = false;
// Set the private defaults
this._unsubscribeAll = new Subject();
}