Improve ol.geom.*.clone() return type annotation

This commit is contained in:
Frederic Junod
2014-08-27 13:30:03 +02:00
parent b7ca592334
commit 42312c6c73
9 changed files with 18 additions and 9 deletions

View File

@@ -29,7 +29,8 @@ goog.inherits(ol.geom.Circle, ol.geom.SimpleGeometry);
/**
* @inheritDoc
* Make a complete copy of the geometry.
* @return {!ol.geom.Circle} Clone.
* @api
*/
ol.geom.Circle.prototype.clone = function() {

View File

@@ -83,7 +83,8 @@ ol.geom.GeometryCollection.prototype.listenGeometriesChange_ = function() {
/**
* @inheritDoc
* Make a complete copy of the geometry.
* @return {!ol.geom.GeometryCollection} Clone.
* @api stable
*/
ol.geom.GeometryCollection.prototype.clone = function() {

View File

@@ -46,7 +46,8 @@ goog.inherits(ol.geom.LinearRing, ol.geom.SimpleGeometry);
/**
* @inheritDoc
* Make a complete copy of the geometry.
* @return {!ol.geom.LinearRing} Clone.
* @api stable
*/
ol.geom.LinearRing.prototype.clone = function() {

View File

@@ -75,7 +75,8 @@ ol.geom.LineString.prototype.appendCoordinate = function(coordinate) {
/**
* @inheritDoc
* Make a complete copy of the geometry.
* @return {!ol.geom.LineString} Clone.
* @api stable
*/
ol.geom.LineString.prototype.clone = function() {

View File

@@ -71,7 +71,8 @@ ol.geom.MultiLineString.prototype.appendLineString = function(lineString) {
/**
* @inheritDoc
* Make a complete copy of the geometry.
* @return {!ol.geom.MultiLineString} Clone.
* @api stable
*/
ol.geom.MultiLineString.prototype.clone = function() {

View File

@@ -46,7 +46,8 @@ ol.geom.MultiPoint.prototype.appendPoint = function(point) {
/**
* @inheritDoc
* Make a complete copy of the geometry.
* @return {!ol.geom.MultiPoint} Clone.
* @api stable
*/
ol.geom.MultiPoint.prototype.clone = function() {

View File

@@ -109,7 +109,8 @@ ol.geom.MultiPolygon.prototype.appendPolygon = function(polygon) {
/**
* @inheritDoc
* Make a complete copy of the geometry.
* @return {!ol.geom.MultiPolygon} Clone.
* @api stable
*/
ol.geom.MultiPolygon.prototype.clone = function() {

View File

@@ -28,7 +28,8 @@ goog.inherits(ol.geom.Point, ol.geom.SimpleGeometry);
/**
* @inheritDoc
* Make a complete copy of the geometry.
* @return {!ol.geom.Point} Clone.
* @api stable
*/
ol.geom.Point.prototype.clone = function() {

View File

@@ -99,7 +99,8 @@ ol.geom.Polygon.prototype.appendLinearRing = function(linearRing) {
/**
* @inheritDoc
* Make a complete copy of the geometry.
* @return {!ol.geom.Polygon} Clone.
* @api stable
*/
ol.geom.Polygon.prototype.clone = function() {