Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unregistering events for solidity module #2640

Merged
merged 1 commit into from
Mar 23, 2020
Merged

Conversation

yann300
Copy link
Collaborator

@yann300 yann300 commented Mar 2, 2020

This fixes a potential bug as now onDeactivation is called by the plugin manager.

it is not possible to call ´this.compiler.event.unregister('loadingCompiler')´
or this.fileManager.events.removeListener('startingCompilation') .
The callback function needs to be specified.
e.g `this.fileManager.events.removeListener('startingCompilation', functionThatNeedToBeUnLinnked)``
So this PR keep track of all the callback used by event handlers so they can be correctly unlinked.

@yann300 yann300 changed the title fix unregister events Fix unregistering events for solidity module Mar 2, 2020
@yann300 yann300 merged commit 484c4a3 into master Mar 23, 2020
@yann300 yann300 deleted the fixUnregisteringToEvent branch March 23, 2020 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants