Add JSDoc for lat and lng properties.

This commit is contained in:
Rand McKinney 2014-05-14 16:34:24 -07:00
parent 7a02c0935b
commit affe3cd943
1 changed files with 7 additions and 0 deletions

View File

@ -138,7 +138,14 @@ function GeoPoint(data) {
assert(data.lat <= 90, 'lat must be <= 90');
assert(data.lat >= -90, 'lat must be >= -90');
/**
* @property {Number} lat The latitude point in degrees. Range: -90 to 90.
*/
this.lat = data.lat;
/**
* @property {Number} lng The longitude point in degrees. Range: -90 to 90.
*/
this.lng = data.lng;
}