From bde6b34502640ee399de3d8c74afb421d2e620db Mon Sep 17 00:00:00 2001 From: Poisbeau Mathieu Date: Wed, 10 Jul 2013 19:00:11 +0200 Subject: [PATCH] Update Marker.js According to the Leaflet documentation, setOpacity must return "this". --- src/layer/marker/Marker.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/layer/marker/Marker.js b/src/layer/marker/Marker.js index 8fba82a1..bc82515d 100644 --- a/src/layer/marker/Marker.js +++ b/src/layer/marker/Marker.js @@ -283,6 +283,8 @@ L.Marker = L.Class.extend({ if (this._map) { this._updateOpacity(); } + + return this; }, _updateOpacity: function () {