Docs(Polyline): closestLayerPoint add missing param doc (#6060)

as commented on PR #5701 (https://github.com/Leaflet/Leaflet/pull/5701#issuecomment-357726857)
This commit is contained in:
Matt Steele 2018-02-20 06:40:24 -06:00 committed by ghybs
parent fa374e67a2
commit 018bac0e9e

View File

@ -84,7 +84,7 @@ export var Polyline = Path.extend({
return !this._latlngs.length;
},
// @method closestLayerPoint: Point
// @method closestLayerPoint(p: Point): Point
// Returns the point closest to `p` on the Polyline.
closestLayerPoint: function (p) {
var minDistance = Infinity,