Skip to content

Commit

Permalink
Fix for GoogleWebComponents#407 in GoogleWebComponents/google-map
Browse files Browse the repository at this point in the history
Undefined in _clearListener in google-map-marker GoogleWebComponents#407
  • Loading branch information
synalysis committed Dec 8, 2018
1 parent 65c597b commit 31c5fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google-map-marker.html
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@
},

_clearListener: function(name) {
if (this._listeners[name]) {
if (this._listeners && this._listeners[name]) {
google.maps.event.removeListener(this._listeners[name]);
this._listeners[name] = null;
}
Expand Down

0 comments on commit 31c5fd7

Please sign in to comment.