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

Skip call to this._update() if this._map is null #4280

Merged
merged 1 commit into from
Mar 1, 2016
Merged

Skip call to this._update() if this._map is null #4280

merged 1 commit into from
Mar 1, 2016

Conversation

errebenito
Copy link
Contributor

Changed addBaseLayer(), addOverlay()y and removeLayer() to only return this._update() if this._map is not null, and return thisotherwise. Hopefully solves issue 4274.

Returns this instead of this._update() if this._map is not set on addBaseLayer(), addOverlay() and removeLayer().
mourner added a commit that referenced this pull request Mar 1, 2016
Skip call to this._update() if this._map is null
@mourner mourner merged commit f7d7ad2 into Leaflet:master Mar 1, 2016
@mourner
Copy link
Member

mourner commented Mar 1, 2016

The build passed in master 👍

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