From 50ad705c4e77c3a9ae7d7563a2731a62a555763f Mon Sep 17 00:00:00 2001 From: Richie Bendall Date: Sat, 21 Nov 2020 21:19:32 +1300 Subject: [PATCH] Only iterate through models once --- source/index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/index.js b/source/index.js index 75ec663..6313bde 100644 --- a/source/index.js +++ b/source/index.js @@ -87,9 +87,7 @@ for (const model of usedModels) { }; } }; -} -for (const model of usedModels) { const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1); styles[bgModel] = { get() {