mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-07-29 11:53:03 +00:00
Upgrade to ESLint 9+ and flat config (#9410)
This commit is contained in:

committed by
GitHub

parent
688033d412
commit
54f49b5bd4
@ -602,9 +602,8 @@ describe('DomEvent', () => {
|
||||
function isPrevented(e) {
|
||||
if ('defaultPrevented' in e) {
|
||||
return e.defaultPrevented;
|
||||
} else { // IE<11
|
||||
return !e.returnValue;
|
||||
}
|
||||
return !e.returnValue; // IE<11
|
||||
}
|
||||
|
||||
it('prevents the default action of event', (done) => {
|
||||
|
Reference in New Issue
Block a user