Do not remove listeners while dispatching event

This commit is contained in:
Andreas Hocevar
2016-03-08 09:30:09 +01:00
parent 951b400227
commit 93f26a90d0
3 changed files with 43 additions and 9 deletions

View File

@@ -214,7 +214,7 @@ describe('ol.events', function() {
var key2 = ol.events.listen(target, 'foo', listener, {});
expect(key1.boundListener).to.not.equal(key2.boundListener);
expect(target.getListeners('foo')).to.eql(
[key2.boundListener, key1.boundListener]);
[key1.boundListener, key2.boundListener]);
});
});