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

@@ -198,7 +198,7 @@ ol.Feature.prototype.getStyleFunction = function() {
* @private
*/
ol.Feature.prototype.handleGeometryChange_ = function() {
this.dispatchChangeEvent();
this.changed();
};
@@ -214,7 +214,7 @@ ol.Feature.prototype.handleGeometryChanged_ = function() {
if (goog.isDefAndNotNull(geometry)) {
this.geometryChangeKey_ = goog.events.listen(geometry,
goog.events.EventType.CHANGE, this.handleGeometryChange_, false, this);
this.dispatchChangeEvent();
this.changed();
}
};
@@ -244,7 +244,7 @@ goog.exportProperty(
ol.Feature.prototype.setStyle = function(style) {
this.style_ = style;
this.styleFunction_ = ol.feature.createFeatureStyleFunction(style);
this.dispatchChangeEvent();
this.changed();
};
@@ -256,7 +256,7 @@ ol.Feature.prototype.setStyle = function(style) {
*/
ol.Feature.prototype.setId = function(id) {
this.id_ = id;
this.dispatchChangeEvent();
this.changed();
};