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

Commit a3b2a67

Browse files
author
Tudor Pavel
committed
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 a3b2a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)