From 574cefa7cf5490a483e4a480e1bc1bbffa0805de Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 4 Oct 2024 23:12:06 +0800 Subject: style: reformat code --- src/utils.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils.mjs') diff --git a/src/utils.mjs b/src/utils.mjs index 4eedf82..ddd3034 100644 --- a/src/utils.mjs +++ b/src/utils.mjs @@ -72,10 +72,10 @@ export const animateRectTransition = (element, rect, options = {}) => { * @param {Number} delay milliseconds * @returns {Any} return value of function call, or null if throttled */ -export function throttle(func, delay) { +export function throttle (func, delay) { let timerFlag = null - return function(...args) { + return function (...args) { const context = this if (timerFlag !== null) return null -- cgit v1.2.3-70-g09d2