stopPropagation and preventDefault are now separate functions
This commit is contained in:
@@ -19,9 +19,9 @@ describe('ol.events.Event', function() {
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
expect(event.propagationStopped).to.be(true);
|
expect(event.propagationStopped).to.be(true);
|
||||||
});
|
});
|
||||||
it('is the same as #stopPropagation', function() {
|
it('does the same as #stopPropagation', function() {
|
||||||
const event = new Event('foo');
|
const event = new Event('foo');
|
||||||
expect(event.stopPropagation).to.equal(event.preventDefault);
|
expect(event.stopPropagation()).to.equal(event.preventDefault());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user