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(layer.js): remove unnecessary returns, to more-gracefully watch l… #365

Closed
wants to merge 6 commits into from

Conversation

coltonbrugger
Copy link

…ayer property changes

Resolves #336

@juristr
Copy link
Collaborator

juristr commented Apr 25, 2017

🤔 going to check this tomorrow on my codebase to verify nothing breaks. Actually I'm not quite sure why these return statements are in there. They have been there already when I took over maintenance of this project 😄. Thx for ur PR

@juristr
Copy link
Collaborator

juristr commented Apr 26, 2017

@AaGg1234 Could you maybe try to include these mods in our codebase to verify it doesn't break anything?

When a layer was not fully instantiated (perhaps due to not being assigned "source" geojson yet), it is still listed as a layer to be destroyed, though the `olLayer` is undefined for it. This update avoids attempts to remove a layer that is undefined.
@coltonbrugger
Copy link
Author

Sorry, accidentally brough additional commits (related to other fixes and openlayers version upgrades). I'm not sure how to roll those back here. Let me know how to best handle.

@juristr juristr mentioned this pull request Feb 14, 2018
@juristr
Copy link
Collaborator

juristr commented Feb 14, 2018

See #389

@juristr juristr closed this Feb 14, 2018
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