Rename updatefeature event to changefeature

This commit is contained in:
Frederic Junod
2014-09-30 09:02:53 +02:00
parent 3285e0ddc8
commit cf8738f9f6
2 changed files with 5 additions and 5 deletions

View File

@@ -31,10 +31,10 @@ ol.source.VectorEventType = {
/**
* Triggered when a feature is updated.
* @event ol.source.VectorEvent#updatefeature
* @event ol.source.VectorEvent#changefeature
* @api
*/
UPDATEFEATURE: 'updatefeature',
CHANGEFEATURE: 'changefeature',
/**
* Triggered when a feature is removed from the source.
@@ -446,7 +446,7 @@ ol.source.Vector.prototype.handleFeatureChange_ = function(event) {
}
this.changed();
this.dispatchEvent(new ol.source.VectorEvent(
ol.source.VectorEventType.UPDATEFEATURE, feature));
ol.source.VectorEventType.CHANGEFEATURE, feature));
};