Remove useless target argument from ol.Event and subclass constructors
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user