Remove useless target argument from ol.Event and subclass constructors

This commit is contained in:
Andreas Hocevar
2016-07-01 17:15:30 +02:00
parent 2845f50ff7
commit ccf15b8be3
12 changed files with 20 additions and 30 deletions

View File

@@ -8,11 +8,6 @@ describe('ol.events.Event', function() {
var event = new ol.events.Event('foo');
expect(event.type).to.be('foo');
});
it('can be constructed with an optional 2nd target arg', function() {
var target = {id: 1};
var event = new ol.events.Event('foo', target);
expect(event.target).to.equal(target);
});
it('does not set the propagationStopped flag', function() {
var event = new ol.events.Event('foo');
expect(event.propagationStopped).to.be(undefined);

View File

@@ -393,7 +393,7 @@ describe('ol.layer.Layer', function() {
layerStatesArray: [],
layerStates: {}
};
map.dispatchEvent(new ol.render.Event('precompose', map, null,
map.dispatchEvent(new ol.render.Event('precompose', null,
frameState, null, null));
expect(frameState.layerStatesArray.length).to.be(1);
var layerState = frameState.layerStatesArray[0];