Explorar o código

Editor: Clean up.

Mr.doob %!s(int64=4) %!d(string=hai) anos
pai
achega
6b3b9d6080
Modificáronse 2 ficheiros con 1 adicións e 9 borrados
  1. 1 1
      editor/js/Sidebar.Project.Materials.js
  2. 0 8
      editor/js/libs/ui.js

+ 1 - 1
editor/js/Sidebar.Project.Materials.js

@@ -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;

+ 0 - 8
editor/js/libs/ui.js

@@ -976,14 +976,6 @@ class UIButton extends UIElement {
 
 	}
 
-	setLabel( value ) {
-
-		this.dom.textContent = value;
-
-		return this;
-
-	}
-
 }
 
 class UIProgress extends UIElement {