Skip to content

Commit

Permalink
Editor: Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Feb 9, 2021
1 parent f1fb6ee commit 6b3b9d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Project.Materials.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function SidebarProjectMaterials( editor ) {
var buttonsRow = new UIRow();
container.add( buttonsRow );

var assignMaterial = new UIButton().setLabel( strings.getKey( 'sidebar/project/Assign' ) );
var assignMaterial = new UIButton( strings.getKey( 'sidebar/project/Assign' ) );
assignMaterial.onClick( function () {

var selectedObject = editor.selected;
Expand Down
8 changes: 0 additions & 8 deletions editor/js/libs/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -976,14 +976,6 @@ class UIButton extends UIElement {

}

setLabel( value ) {

this.dom.textContent = value;

return this;

}

}

class UIProgress extends UIElement {
Expand Down

0 comments on commit 6b3b9d6

Please sign in to comment.