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

@@ -52,7 +52,8 @@ ol.projection = function(opt_arg){
*/
ol.Projection.prototype.code = function(opt_code){
if (arguments.length == 1 && goog.isDef(opt_code)) {
return this.setCode(opt_code);
this.setCode(opt_code);
return this;
}
else {
return this.getCode();