diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-04 23:12:06 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-04 23:12:09 +0800 |
commit | 574cefa7cf5490a483e4a480e1bc1bbffa0805de (patch) | |
tree | ed978444865149dd84cd9a786f04f50ddba5bd73 /src/utils.mjs | |
parent | 9a0fdb914d50c32f062de58704b40ea1ceb23203 (diff) |
style: reformat code
Diffstat (limited to 'src/utils.mjs')
-rw-r--r-- | src/utils.mjs | 4 |
1 files changed, 2 insertions, 2 deletions
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 = {}) => { | |||
72 | * @param {Number} delay milliseconds | 72 | * @param {Number} delay milliseconds |
73 | * @returns {Any} return value of function call, or null if throttled | 73 | * @returns {Any} return value of function call, or null if throttled |
74 | */ | 74 | */ |
75 | export function throttle(func, delay) { | 75 | export function throttle (func, delay) { |
76 | let timerFlag = null | 76 | let timerFlag = null |
77 | 77 | ||
78 | return function(...args) { | 78 | return function (...args) { |
79 | const context = this | 79 | const context = this |
80 | if (timerFlag !== null) return null | 80 | if (timerFlag !== null) return null |
81 | 81 | ||