Skip to content

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

Merged
mourner merged 1 commit intoLeaflet:masterfrom
errebenito:master
Mar 1, 2016
Merged

Skip call to this._update() if this._map is null#4280
mourner merged 1 commit intoLeaflet:masterfrom
errebenito:master

Conversation

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