mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -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)
|
||
|
}
|
||
|
}
|