From b1dac2720b8ede423bdeefa8f9364f995cdf1a6c Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Wed, 25 Dec 2024 09:43:43 -0800 Subject: [PATCH] lint --- examples/js/long-hide.js | 2 +- src/muigui.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/js/long-hide.js b/examples/js/long-hide.js index 27c43c5..0651864 100644 --- a/examples/js/long-hide.js +++ b/examples/js/long-hide.js @@ -23,7 +23,7 @@ const radToDegOptions = { min: -180, max: 180, step: 1, converters: GUI.converte const cameraRadToDegOptions = { min: -180, max: 180, step: 1, converters: GUI.converters.radToDeg }; gui.add(settings, 'baseRotation', cameraRadToDegOptions); -const nodeLabel = gui.addLabel('node:'); +/*const nodeLabel =*/ gui.addLabel('node:'); const trsFolder = gui.addFolder('orientation'); trsFolder.add(settings.translation, '0', -50, 50, 1).name('translation x'); trsFolder.add(settings.translation, '1', -50, 50, 1).name('translation y'); diff --git a/src/muigui.js b/src/muigui.js index f47c12f..ef6b2c7 100644 --- a/src/muigui.js +++ b/src/muigui.js @@ -47,8 +47,7 @@ function prepName(name) { export class GUIFolder extends Folder { add(object, property, ...args) { - const isController = object instanceof Controller - const controller = isController + const controller = object instanceof Controller ? object : createController(object, property, ...args).name(prepName(property)); return this.addController(controller);