From 1ac40021bb7f1a32fc959f4f392b3c982d4472de Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Wed, 20 Jun 2012 17:43:35 +0200 Subject: [PATCH] Quoting properties for external use. --- src/ol/Loc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ol/Loc.js b/src/ol/Loc.js index c3d4505038..f2b0e44190 100644 --- a/src/ol/Loc.js +++ b/src/ol/Loc.js @@ -117,7 +117,7 @@ ol.Loc.prototype.transform = function(proj) { if (goog.isString(proj)) { proj = new ol.Projection(proj); } - return this.transform_(proj); + return this._transform(proj); }; /** @@ -126,8 +126,8 @@ ol.Loc.prototype.transform = function(proj) { * @param {!ol.Projection} proj The destination projection. * @returns {!ol.Loc} */ -ol.Loc.prototype.transform_ = function(proj) { - var point = {x: this.x_, y: this.y_}; +ol.Loc.prototype._transform = function(proj) { + var point = {'x': this.x_, 'y': this.y_}; var sourceProj = this.projection_; if (!goog.isDefAndNotNull(sourceProj)) { throw new Error("Cannot transform a location without a source projection.");