Skip to content

Commit 6b3b9d6

Browse files
committed
Editor: Clean up.
1 parent f1fb6ee commit 6b3b9d6

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

editor/js/Sidebar.Project.Materials.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function SidebarProjectMaterials( editor ) {
2222
var buttonsRow = new UIRow();
2323
container.add( buttonsRow );
2424

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

2828
var selectedObject = editor.selected;

editor/js/libs/ui.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -976,14 +976,6 @@ class UIButton extends UIElement {
976976

977977
}
978978

979-
setLabel( value ) {
980-
981-
this.dom.textContent = value;
982-
983-
return this;
984-
985-
}
986-
987979
}
988980

989981
class UIProgress extends UIElement {

0 commit comments

Comments
 (0)