cleanup
This commit is contained in:
@@ -14,7 +14,7 @@ export const preventAll = (event) => {
|
||||
}
|
||||
};
|
||||
|
||||
export const safeInvoke = (fn, ...args) => (typeof fn === 'function' ? fn(...args) : undefined);
|
||||
export const safeInvoke = (fn, ...args) => fn?.(...args);
|
||||
|
||||
export const getPointerPosition = (event, { fallbackToPage = true } = {}) => {
|
||||
if (!event) {
|
||||
|
||||
Reference in New Issue
Block a user