Merge pull request #2772 from fredj/changefeature

Rename updatefeature event to changefeature
This commit is contained in:
Frédéric Junod committed 2014-09-30 09:27:58 +02:00
commit c0fc220298
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -242,13 +242,13 @@ describe('ol.source.Vector', function() {
expect(listener).to.be.called();
});
it('fires a updatefeature event when updating a feature', function() {
it('fires a changefeature event when updating a feature', function() {
var feature = new ol.Feature(new ol.geom.Point([1, 1]));
vectorSource.addFeature(feature);
var listener = sinon.spy(function(event) {
expect(event.feature).to.be(feature);
});
vectorSource.on('updatefeature', listener);
vectorSource.on('changefeature', listener);
feature.setStyle(null);
expect(listener).to.be.called();
});