From b2d037dc26bae420d30d9a4ef32ad3eb28fa17d3 Mon Sep 17 00:00:00 2001 From: Zeno Zeng Date: Tue, 5 Oct 2021 15:01:09 +0800 Subject: [PATCH] style: make eslint happy --- src/index.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/index.js b/src/index.js index 94d3383..6291424 100644 --- a/src/index.js +++ b/src/index.js @@ -9,19 +9,19 @@ function init(p5) { /** * @namespace p5 */ - RendererSVG(p5); - Rendering(p5); - IO(p5); - Element(p5); - Filters(p5); + RendererSVG(p5); + Rendering(p5); + IO(p5); + Element(p5); + Filters(p5); - // attach constants to p5 instance - Object.keys(constants).forEach(function(k) { - p5.prototype[k] = constants[k]; - }); + // attach constants to p5 instance + Object.keys(constants).forEach(function(k) { + p5.prototype[k] = constants[k]; + }); } -if (typeof window.p5 !== "undefined") { +if (typeof window.p5 !== 'undefined') { init(window.p5); }