mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-08-16 16:45:22 +00:00
Just store array of listeners, count is no longer needed. (#4842)
* Just store array of listeners, count is no longer needed. * Remove unused code
This commit is contained in:

committed by
Vladimir Agafonkin

parent
b00f6e0a97
commit
017d29c4eb
@ -377,11 +377,7 @@ describe('Events', function () {
|
||||
|
||||
obj.removeEventListener('test', removeSpy);
|
||||
|
||||
// expect(obj.listens('test', L.Util.falseFn)).to.be(false);
|
||||
// Remove the expect below and comment out the one above, once we've
|
||||
// gotten rid of _events.count (which makes the expect above pass).
|
||||
var listeners = obj._events['test'];
|
||||
expect(listeners.count === listeners.listeners.length).to.be(true);
|
||||
expect(obj.listens('test')).to.be(false);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user