Revision 59816
Added by Argiro Kokogiannaki over 3 years ago
fetchOrganizations.class.ts | ||
---|---|---|
11 | 11 |
public results =[]; |
12 | 12 |
|
13 | 13 |
public searchUtils:SearchUtilsClass = new SearchUtilsClass(); |
14 |
public sub: any; |
|
15 |
public subResults: any; |
|
14 |
public subResults: any; |
|
16 | 15 |
|
17 | 16 |
|
18 | 17 |
|
... | ... | |
25 | 24 |
} |
26 | 25 |
|
27 | 26 |
|
28 |
public ngOnDestroy() { |
|
29 |
if(this.sub){ |
|
30 |
this.sub.unsubscribe(); |
|
31 |
} |
|
27 |
public clearSubscriptions() { |
|
28 |
|
|
32 | 29 |
if(this.subResults){ |
33 | 30 |
this.subResults.unsubscribe(); |
34 | 31 |
} |
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())