Skip to content

Commit

Permalink
onLinkClick increases semantic specificity, replacing onClick
Browse files Browse the repository at this point in the history
  • Loading branch information
Stassi committed Nov 13, 2024
1 parent f0c49fa commit 62f0014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/script/leaflet-fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function createFullscreenControl(options = {}, getFullscreen, setFullscreen) {
link.href = '#'
link.title = mergedOptions.title[getFullscreen()]

DomEvent.on(link, 'click', function onClick(e) {
DomEvent.on(link, 'click', function onLinkClick(e) {
DomEvent.stopPropagation(e)
DomEvent.preventDefault(e)
toggleFullscreen(map, mergedOptions, getFullscreen, setFullscreen)
Expand Down

0 comments on commit 62f0014

Please sign in to comment.