Adaptation of previous changes to the change from 61241e7 (null instead of undefined as the initial value)

This commit is contained in:
Michał Zielański
2020-06-24 09:54:56 +02:00
parent 61241e7f90
commit 235babfd7f
4 changed files with 12 additions and 7 deletions

View File

@@ -33,6 +33,11 @@ describe('ol.events.EventTarget', function () {
});
target.dispatchEvent('my-event');
});
it('does not initialize objects in advance', function () {
expect(eventTarget.pendingRemovals_).to.be(null);
expect(eventTarget.dispatching_).to.be(null);
expect(eventTarget.listeners_).to.be(null);
});
});
describe('#hasListener', function () {