aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.mjs')
-rw-r--r--src/utils.mjs4
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 */
75export function throttle(func, delay) { 75export 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