Rename ol.Observable#dispatchChangeEvent() to #changed()

Since dispatchChangeEvent does not only dispatch a change event, but
also increases the revision counter, the method name should reflect
this.
This commit is contained in:
Andreas Hocevar
2014-09-04 19:30:48 -06:00
parent 5de537001f
commit ebe3b48e0a
32 changed files with 66 additions and 66 deletions

View File

@@ -182,7 +182,7 @@ ol.geom.Circle.prototype.setCenterAndRadius =
flatCoordinates[offset++] = flatCoordinates[i];
}
flatCoordinates.length = offset;
this.dispatchChangeEvent();
this.changed();
}
};
@@ -194,7 +194,7 @@ ol.geom.Circle.prototype.setCenterAndRadius =
ol.geom.Circle.prototype.setFlatCoordinates =
function(layout, flatCoordinates) {
this.setFlatCoordinatesInternal(layout, flatCoordinates);
this.dispatchChangeEvent();
this.changed();
};
@@ -205,7 +205,7 @@ ol.geom.Circle.prototype.setFlatCoordinates =
ol.geom.Circle.prototype.setRadius = function(radius) {
goog.asserts.assert(!goog.isNull(this.flatCoordinates));
this.flatCoordinates[this.stride] = this.flatCoordinates[0] + radius;
this.dispatchChangeEvent();
this.changed();
};