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:
@@ -70,7 +70,7 @@ ol.geom.LineString.prototype.appendCoordinate = function(coordinate) {
|
||||
} else {
|
||||
ol.array.safeExtend(this.flatCoordinates, coordinate);
|
||||
}
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@ ol.geom.LineString.prototype.setCoordinates =
|
||||
}
|
||||
this.flatCoordinates.length = ol.geom.flat.deflate.coordinates(
|
||||
this.flatCoordinates, 0, coordinates, this.stride);
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -218,5 +218,5 @@ ol.geom.LineString.prototype.setCoordinates =
|
||||
ol.geom.LineString.prototype.setFlatCoordinates =
|
||||
function(layout, flatCoordinates) {
|
||||
this.setFlatCoordinatesInternal(layout, flatCoordinates);
|
||||
this.dispatchChangeEvent();
|
||||
this.changed();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user