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

Commit

Permalink
Update richmarker.js to send marker as argument to 'dragend' callback
Browse files Browse the repository at this point in the history
Unless the marker object is sent as an argument in the callback, you can only use anonymous functions which have the marker in scope.
  • Loading branch information
Tudor Pavel committed Feb 12, 2016
1 parent 67f21d6 commit a3b2a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/richmarker.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ RichMarker.prototype.stopDrag = function() {
this.removeDraggingListeners_();

this.setCursor_('draggable');
google.maps.event.trigger(this, 'dragend');
google.maps.event.trigger(this, 'dragend', this);

this.draw();
}
Expand Down

0 comments on commit a3b2a67

Please sign in to comment.