Don't say this so much, options is in local scope.

This commit is contained in:
danzel 2013-06-12 16:06:27 +12:00
parent fa45913505
commit 11e227bf6f

View File

@ -108,7 +108,7 @@ L.Marker = L.Class.extend({
if (!reuseIcon) {
this._icon = options.icon.createIcon();
} else {
this._icon = this.options.icon.createIcon(this._icon);
this._icon = options.icon.createIcon(this._icon);
//If the icon isn't being reused
if (reuseIcon !== this._icon) {
@ -128,7 +128,7 @@ L.Marker = L.Class.extend({
}
this._initInteraction();
needOpacityUpdate = (this.options.opacity < 1);
needOpacityUpdate = (options.opacity < 1);
L.DomUtil.addClass(this._icon, classToAdd);
@ -144,10 +144,10 @@ L.Marker = L.Class.extend({
if (this._shadow) {
L.DomUtil.addClass(this._shadow, classToAdd);
needOpacityUpdate = (this.options.opacity < 1);
needOpacityUpdate = (options.opacity < 1);
}
} else {
this._shadow = this.options.icon.createShadow(this._shadow);
this._shadow = options.icon.createShadow(this._shadow);
}
if (needOpacityUpdate) {