From 500d75a1f2693512d0a112138a7d8e6f0eb97e83 Mon Sep 17 00:00:00 2001 From: Matt Perry Date: Thu, 8 Dec 2022 15:33:34 +0100 Subject: [PATCH] Updating comment --- packages/framer-motion/src/animation/waapi/supports.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/framer-motion/src/animation/waapi/supports.ts b/packages/framer-motion/src/animation/waapi/supports.ts index cd7fa0a55..cd1d4fc1d 100644 --- a/packages/framer-motion/src/animation/waapi/supports.ts +++ b/packages/framer-motion/src/animation/waapi/supports.ts @@ -8,6 +8,9 @@ const results = {} export const supports = {} as FeatureTests +/** + * Generate features tests that cache their results. + */ for (const key in featureTests) { supports[key] = () => { if (results[key] === undefined) results[key] = featureTests[key]()