mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 16:03:15 -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)
|
||
|
}
|
||
|
}
|