Skip to content

Commit

Permalink
invalid if check issue fixed
Browse files Browse the repository at this point in the history
this was a small bug i found on line 196, please have a look
  • Loading branch information
bilalsaeed232 authored Dec 26, 2018
1 parent e69a677 commit 010871b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapbox-gl-control.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
}

_createIControl(map, icontrol, icontrolOptions) {
if (!map || !icontrol || this.icontrol) return;
if (!map || !icontrol || !this.icontrol) return;
// name of the control
if (typeof icontrol === 'string') {
this.icontrol = new mapboxgl[icontrol](icontrolOptions);
Expand Down

0 comments on commit 010871b

Please sign in to comment.