EPI setters no longer return this

This commit is contained in:
Éric Lemoine
2012-06-20 11:05:23 +02:00
parent 41df32df9a
commit 487e61884e
7 changed files with 16 additions and 68 deletions
-38
View File
@@ -46,42 +46,6 @@ ol.Bounds = function(minX, minY, maxX, maxY, opt_projection) {
};
goog.inherits(ol.Bounds, ol.UnreferencedBounds);
/**
* @param {number} minX Minimum X.
* @return {!ol.Bounds} This.
*/
ol.Bounds.prototype.setMinX = function(minX) {
this.minX_ = minX;
return this;
};
/**
* @param {number} maxX Maximum X.
* @return {!ol.Bounds} This.
*/
ol.Bounds.prototype.setMaxX = function(maxX) {
this.maxX_ = maxX;
return this;
};
/**
* @param {number} minY Minimum Y.
* @return {!ol.Bounds} This.
*/
ol.Bounds.prototype.setMinY = function(minY) {
this.minY_ = minY;
return this;
};
/**
* @param {number} maxY Maximum Y.
* @return {!ol.Bounds} This.
*/
ol.Bounds.prototype.setMaxY = function(maxY) {
this.maxY_ = maxY;
return this;
};
/**
* @return {ol.Projection|undefined} Projection.
*/
@@ -91,9 +55,7 @@ ol.Bounds.prototype.getProjection = function() {
/**
* @param {ol.Projection|undefined} projection Projection.
* @return {ol.Bounds} This.
*/
ol.Bounds.prototype.setProjection = function(projection) {
this.projection_ = projection;
return this;
};
-8
View File
@@ -74,41 +74,33 @@ ol.Loc.prototype.getZ = function() {
/**
* @param {ol.Projection|undefined} projection Projection.
* @return {ol.Loc} This.
*/
ol.Loc.prototype.setProjection = function(projection) {
this.projection_ = projection;
return this;
};
/**
* @param {number} x X.
* @return {ol.Loc} This.
*/
ol.Loc.prototype.setX = function(x) {
this.x_ = x;
return this;
};
/**
* @param {number} y Y.
* @return {ol.Loc} This.
*/
ol.Loc.prototype.setY = function(y) {
this.y_ = y;
return this;
};
/**
* @param {number|undefined} z Z.
* @return {ol.Loc} This.
*/
ol.Loc.prototype.setZ = function(z) {
this.z_ = z;
return this;
};
/**
-6
View File
@@ -43,11 +43,9 @@ ol.Projection.prototype.getCode = function() {
/**
* @param {string} code Code.
* @return {!ol.Projection} This.
*/
ol.Projection.prototype.setCode = function(code) {
this.code_ = code;
return this;
};
/**
@@ -59,11 +57,9 @@ ol.Projection.prototype.getUnits = function() {
/**
* @param {string} units Units abbreviation.
* @return {!ol.Projection} This.
*/
ol.Projection.prototype.setUnits = function(units) {
this.units_ = units;
return this;
};
/**
@@ -77,11 +73,9 @@ ol.Projection.prototype.getExtent = function() {
/**
* @param {!ol.UnreferencedBounds} extent Validity extent.
* @return {ol.Projection} This.
*/
ol.Projection.prototype.setExtent = function(extent) {
this.extent_ = extent;
return this;
};
/**
-8
View File
@@ -45,11 +45,9 @@ ol.UnreferencedBounds.prototype.getMinX = function() {
/**
* @param {number} minX Minimum X.
* @return {ol.UnreferencedBounds} This.
*/
ol.UnreferencedBounds.prototype.setMinX = function(minX) {
this.minX_ = minX;
return this;
};
/**
@@ -61,11 +59,9 @@ ol.UnreferencedBounds.prototype.getMinY = function() {
/**
* @param {number} minY Minimum Y.
* @return {ol.UnreferencedBounds} This.
*/
ol.UnreferencedBounds.prototype.setMinY = function(minY) {
this.minY_ = minY;
return this;
};
/**
@@ -77,11 +73,9 @@ ol.UnreferencedBounds.prototype.getMaxX = function() {
/**
* @param {number} maxX Maximum X.
* @return {ol.UnreferencedBounds} This.
*/
ol.UnreferencedBounds.prototype.setMaxX = function(maxX) {
this.maxX_ = maxX;
return this;
};
/**
@@ -93,10 +87,8 @@ ol.UnreferencedBounds.prototype.getMaxY = function() {
/**
* @param {number} maxY Maximum Y.
* @return {ol.UnreferencedBounds} This.
*/
ol.UnreferencedBounds.prototype.setMaxY = function(maxY) {
this.maxY_ = maxY;
return this;
};