From a37d513304eff40429e2a12f26168077d7f4962d Mon Sep 17 00:00:00 2001 From: Bertie Wheen Date: Thu, 22 Oct 2020 12:27:10 +0100 Subject: [PATCH] Fix issue with markers virtual DOM (see https://github.com/GoogleWebComponents/google-map/pull/397) --- google-map-marker.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/google-map-marker.html b/google-map-marker.html index 1900fa3..4b52ca3 100644 --- a/google-map-marker.html +++ b/google-map-marker.html @@ -315,7 +315,7 @@ }, _clickEventsChanged: function() { - if (this.map) { + if (this.marker) { if (this.clickEvents) { this._forwardEvent('click'); this._forwardEvent('dblclick'); @@ -329,7 +329,7 @@ }, _dragEventsChanged: function() { - if (this.map) { + if (this.marker) { if (this.dragEvents) { this._forwardEvent('drag'); this._forwardEvent('dragend'); @@ -343,7 +343,7 @@ }, _mouseEventsChanged: function() { - if (this.map) { + if (this.marker) { if (this.mouseEvents) { this._forwardEvent('mousedown'); this._forwardEvent('mousemove');