return this in LayerGroup eachLayer, close #1452

This commit is contained in:
Vladimir Agafonkin 2013-02-25 19:26:35 +02:00
parent 0a83b83237
commit bba4f2ae1b

View File

@ -90,6 +90,7 @@ L.LayerGroup = L.Class.extend({
method.call(context, this._layers[i]); method.call(context, this._layers[i]);
} }
} }
return this;
}, },
setZIndex: function (zIndex) { setZIndex: function (zIndex) {