Use inherited dispatchChangeEvent and getRevision in ol.geom.Geometry

This commit is contained in:
Tom Payne
2014-01-21 11:43:08 +01:00
parent 911cb302e8
commit edcb38232f
10 changed files with 26 additions and 50 deletions
+2 -2
View File
@@ -65,10 +65,10 @@ ol.geom.Point.prototype.getCoordinates = function() {
* @inheritDoc
*/
ol.geom.Point.prototype.getExtent = function(opt_extent) {
if (this.extentRevision != this.revision) {
if (this.extentRevision != this.getRevision()) {
this.extent = ol.extent.createOrUpdateFromCoordinate(
this.flatCoordinates, this.extent);
this.extentRevision = this.revision;
this.extentRevision = this.getRevision();
}
goog.asserts.assert(goog.isDef(this.extent));
return ol.extent.returnOrUpdate(this.extent, opt_extent);