Docstrings: 'x' and 'y' properties for L.Point, closes #5117

This commit is contained in:
Iván Sánchez Ortega 2016-11-18 16:35:23 +01:00
parent 54d6fc24c1
commit d89271b404

View File

@ -19,7 +19,9 @@
*/ */
L.Point = function (x, y, round) { L.Point = function (x, y, round) {
// @property x: Number; The `x` coordinate of the point
this.x = (round ? Math.round(x) : x); this.x = (round ? Math.round(x) : x);
// @property y: Number; The `y` coordinate of the point
this.y = (round ? Math.round(y) : y); this.y = (round ? Math.round(y) : y);
}; };