Set extent and extentRevision variables to private

This commit is contained in:
Frederic Junod
2015-01-08 11:39:41 +01:00
parent 8bd0a1232a
commit f7943b9401
+8 -8
View File
@@ -59,16 +59,16 @@ ol.geom.Geometry = function() {
goog.base(this); goog.base(this);
/** /**
* @protected * @private
* @type {ol.Extent} * @type {ol.Extent}
*/ */
this.extent = ol.extent.createEmpty(); this.extent_ = ol.extent.createEmpty();
/** /**
* @protected * @private
* @type {number} * @type {number}
*/ */
this.extentRevision = -1; this.extentRevision_ = -1;
/** /**
* @protected * @protected
@@ -157,11 +157,11 @@ ol.geom.Geometry.prototype.containsXY = goog.functions.FALSE;
* @api stable * @api stable
*/ */
ol.geom.Geometry.prototype.getExtent = function(opt_extent) { ol.geom.Geometry.prototype.getExtent = function(opt_extent) {
if (this.extentRevision != this.getRevision()) { if (this.extentRevision_ != this.getRevision()) {
this.extent = this.computeExtent(this.extent); this.extent_ = this.computeExtent(this.extent_);
this.extentRevision = this.getRevision(); this.extentRevision_ = this.getRevision();
} }
return ol.extent.returnOrUpdate(this.extent, opt_extent); return ol.extent.returnOrUpdate(this.extent_, opt_extent);
}; };