fix Map hasLayer

This commit is contained in:
Vladimir Agafonkin 2013-12-13 16:47:58 -05:00
parent 8c3010ca88
commit de4f0353e1

View File

@ -87,7 +87,7 @@ L.Map.include({
},
hasLayer: function (layer) {
return !layer || L.stamp(layer) in this._layers;
return layer || L.stamp(layer) in this._layers;
},
eachLayer: function (method, context) {