mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-12 06:11:35 -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)
|
||
|
}
|
||
|
}
|