Skip to content

fix(layer.js): remove unnecessary returns, to more-gracefully watch l…#365

Closed
coltonbrugger wants to merge 6 commits into
tombatossals:masterfrom
coltonbrugger:master
Closed

fix(layer.js): remove unnecessary returns, to more-gracefully watch l…#365
coltonbrugger wants to merge 6 commits into
tombatossals:masterfrom
coltonbrugger:master

Conversation

@coltonbrugger

Copy link
Copy Markdown

…ayer property changes

Resolves #336

@juristr

juristr commented Apr 25, 2017

Copy link
Copy Markdown
Collaborator

🤔 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

juristr commented Apr 26, 2017

Copy link
Copy Markdown
Collaborator

@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
Copy Markdown
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

juristr commented Feb 14, 2018

Copy link
Copy Markdown
Collaborator

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