Project

General

Profile

« Previous | Next » 

Revision 59816

[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())

View differences:

searchAll.component.ts
25 25
import {SEOService} from '../../sharedComponents/SEO/SEO.service';
26 26
import {StringUtils} from '../../utils/string-utils.class';
27 27
import {SearchCustomFilter} from "../searchUtils/searchUtils.class";
28
import {Observable, Subscription} from "rxjs";
28
import {Subscription} from "rxjs";
29 29
import {AdvancedField, Filter} from "../searchUtils/searchHelperClasses.class";
30 30
import {SearchResearchResultsComponent} from "../searchResearchResults.component";
31 31
import {SearchProjectsComponent} from "../searchProjects.component";
......
252 252
    for (let sub of this.subs) {
253 253
      sub.unsubscribe();
254 254
    }
255
    this.fetchDatasets.clearSubscriptions();
256
    this.fetchPublications.clearSubscriptions();
257
    this.fetchSoftware.clearSubscriptions();
258
    this.fetchPublications.clearSubscriptions();
259
    this.fetchOrganizations.clearSubscriptions();
260
    this.fetchDataproviders.clearSubscriptions();
261
    this.fetchProjects.clearSubscriptions();
255 262
  }
256 263

  
257 264
  public searchResults() {

Also available in: Unified diff