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

View File

@@ -75,7 +75,8 @@ ol.Loc.prototype.projection = function(opt_arg){
*/
ol.Loc.prototype.x = function(opt_arg){
if (arguments.length == 1 && goog.isDef(opt_arg)) {
return this.setX(opt_arg);
this.setX(opt_arg);
return this;
}
else {
return this.getX();
@@ -90,7 +91,8 @@ ol.Loc.prototype.x = function(opt_arg){
*/
ol.Loc.prototype.y = function(opt_arg){
if (arguments.length == 1 && goog.isDef(opt_arg)) {
return this.setY(opt_arg);
this.setY(opt_arg);
return this;
}
else {
return this.getY();