Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Dec 25, 2024
1 parent 837460f commit b1dac27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/js/long-hide.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 1 addition & 2 deletions src/muigui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b1dac27

Please sign in to comment.