Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Guard against this._controlContainer being undefined (#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
olaf-cloudgenix authored and mourner committed Nov 13, 2019
1 parent 6e7c408 commit 04323e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ var LMap = L.Map.extend({
},

_updateMapFeedbackLink: function() {
if (!this._controlContainer.getElementsByClassName) return;
if (!this._controlContainer || !this._controlContainer.getElementsByClassName) return;
var link = this._controlContainer.getElementsByClassName('mapbox-improve-map');
if (link.length && this._loaded) {
var center = this.getCenter().wrap();
Expand Down

0 comments on commit 04323e1

Please sign in to comment.