Skip to content
This repository was archived by the owner on Dec 15, 2018. It is now read-only.

Commit 1b2116e

Browse files
tudorpavelTudor Pavel
authored andcommitted
Update richmarker.js to send marker as argument to 'dragend' callback
Unless the marker object is sent as an argument in the callback, you can only use anonymous functions which have the marker in scope.
1 parent 67f21d6 commit 1b2116e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/richmarker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ RichMarker.prototype.stopDrag = function() {
526526
this.removeDraggingListeners_();
527527

528528
this.setCursor_('draggable');
529-
google.maps.event.trigger(this, 'dragend');
529+
google.maps.event.trigger(this, 'dragend', this);
530530

531531
this.draw();
532532
}

0 commit comments

Comments
 (0)