fix regression in marker setIcon #1768

This commit is contained in:
Vladimir Agafonkin 2013-06-23 19:44:02 -04:00
parent 19d49e027f
commit 43c2c6a4a0
3 changed files with 5 additions and 3 deletions

3
dist/leaflet-src.js vendored
View File

@ -3482,9 +3482,10 @@ L.Marker = L.Class.extend({
if (options.title) {
icon.title = options.title;
}
L.DomUtil.addClass(icon, classToAdd);
}
L.DomUtil.addClass(icon, classToAdd);
this._icon = icon;
this._initInteraction();

2
dist/leaflet.js vendored

File diff suppressed because one or more lines are too long

View File

@ -117,9 +117,10 @@ L.Marker = L.Class.extend({
if (options.title) {
icon.title = options.title;
}
L.DomUtil.addClass(icon, classToAdd);
}
L.DomUtil.addClass(icon, classToAdd);
this._icon = icon;
this._initInteraction();