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

Possible bug in settings changed listeners #6054

Open
mbektas opened this issue Feb 28, 2019 · 1 comment
Open

Possible bug in settings changed listeners #6054

mbektas opened this issue Feb 28, 2019 · 1 comment
Milestone

Comments

@mbektas
Copy link
Member

mbektas commented Feb 28, 2019

While working on (#5990), I noticed a possible reference issue with settings listeners. I saw it in couple of places but here is one example:
https://github.com/jupyterlab/jupyterlab/blob/master/packages/markdownviewer-extension/src/index.ts#L96
In this line updateSettings(settings); call is made using the settings argument from line 94.

I think it should be used as in https://github.com/jupyterlab/jupyterlab/blob/master/packages/statusbar-extension/src/index.ts#L106-L108 so that updated settings are applied.

Please look into this to decide if it is a real issue.

@jasongrout jasongrout added this to the Future milestone Mar 15, 2019
@jasongrout
Copy link
Contributor

After some discussion, we decided not to dictate a style for this at this point. It is functioning properly (it's using the closure). If you feel strongly about it, we wouldn't object to a PR either.

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

No branches or pull requests

2 participants