Skip to content

Commit

Permalink
Merge pull request #182 from tmcw/edit-callback-icon
Browse files Browse the repository at this point in the history
Check for icon existence before disabling edit state
  • Loading branch information
jacobtoye committed Sep 5, 2013
2 parents 86bd1a3 + 6949a5a commit e3e8076
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/edit/handler/EditToolbar.Edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ L.EditToolbar.Edit = L.Handler.extend({
},

_toggleMarkerHighlight: function (marker) {
if (!marker._icon) {
return;
}
// This is quite naughty, but I don't see another way of doing it. (short of setting a new icon)
var icon = marker._icon;

Expand Down

0 comments on commit e3e8076

Please sign in to comment.