mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 17:51:39 -05:00
7 lines
134 B
JavaScript
7 lines
134 B
JavaScript
|
export default function withoutPropagation(callback) {
|
||
|
return ev => {
|
||
|
ev.stopPropagation()
|
||
|
if (callback) callback(ev)
|
||
|
}
|
||
|
}
|