Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • C core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 89
    • Issues 89
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • minervaminerva
  • core
  • Issues
  • #687
Closed
Open
Issue created Feb 12, 2019 by David Hoksza@david.hokszaDeveloper

Plugin events not unregistered propertly

Plugins events are not unregistered after calling project.map.removeAllListeners(). This can be seen with the exploration plugin which results in

[2019-02-12 06:32:17.236] [WARN] [default] - Cannot remove listener. It doesn't exist onSearch function (e) {
          return getFullElements(map, e.arg.identifiedElements).then(function (result) {
            return param.callback(result);
          });
        }
minerva.js.xhtml?ln=js&m_version=6e5a023fa598ba67a95b74cb493123d3eec183e7:51356 [2019-02-12 06:32:17.239] [WARN] [default] - Cannot remove listener. It doesn't exist onResize function () {
          return param.callback();
        }
minerva.js.xhtml?ln=js&m_version=6e5a023fa598ba67a95b74cb493123d3eec183e7:51356 [2019-02-12 06:32:17.242] [WARN] [default] - 'Map exploration' plugin didn't remove all registered listeners

But the plugin, indeed, registers the two above mentioned listeners.

Edited Feb 12, 2019 by Piotr Gawron
Assignee
Assign to
Time tracking