mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-17 23:31:14 -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)
|
||
|
}
|
||
|
}
|