Revision 59816
Added by Argiro Kokogiannaki over 3 years ago
entitiesAutoComplete.component.ts | ||
---|---|---|
1 | 1 |
|
2 | 2 |
import {switchMap, distinctUntilChanged, debounceTime} from 'rxjs/operators'; |
3 |
import {Component, ElementRef, Input, Output, EventEmitter, OnChanges, SimpleChange} from '@angular/core';
|
|
3 |
import {Component, ElementRef, Input, Output, EventEmitter, SimpleChange} from '@angular/core'; |
|
4 | 4 |
import {Observable, Subject} from 'rxjs'; |
5 |
import {Value} from '../../searchPages/searchUtils/searchHelperClasses.class'; |
|
6 | 5 |
import {EntitiesSearchService} from './entitySearch.service'; |
7 | 6 |
import{EnvProperties} from '../properties/env-properties'; |
8 | 7 |
import {StringUtils} from "../string-utils.class"; |
... | ... | |
142 | 141 |
|
143 | 142 |
} |
144 | 143 |
ngOnDestroy(){ |
145 |
if(this.sub && this.sub != undefined){
|
|
144 |
if(this.sub){ |
|
146 | 145 |
this.sub.unsubscribe(); |
147 | 146 |
} |
148 | 147 |
} |
Also available in: Unified diff
[Library|Trunk]
code clean up:
-remove app.* files from library
-remove unused imports, code, files (Old search pages for results, dataproviders, map search page, etc)
-remove Freeguard from modules
-unsubscribe all subscriptions
-Services: configuration, isvocabularies, user management: unsubscribe from app component or the component that uses them (clearSubscriptions())
-Fetchers: unsubscribe from the component that uses them (clearSubscriptions())