Преглед на файлове

Minor method name change

Dinesh Salunke преди 5 години
родител
ревизия
d7fd2b5041
променени са 3 файла, в които са добавени 7 реда и са изтрити 7 реда
  1. 3 3
      editor/js/Sidebar.Properties.js
  2. 3 3
      editor/js/Sidebar.js
  3. 1 1
      editor/js/libs/ui.js

+ 3 - 3
editor/js/Sidebar.Properties.js

@@ -9,9 +9,9 @@ Sidebar.Properties = function ( editor ) {
 	var container = new UI.TabbedPanel();
 	var container = new UI.TabbedPanel();
 	container.setId( 'properties' );
 	container.setId( 'properties' );
 
 
-	container.addPanel( 'object', strings.getKey( 'sidebar/properties/object' ), new Sidebar.Object( editor ) );
-	container.addPanel( 'geometry', strings.getKey( 'sidebar/properties/geometry' ), new Sidebar.Geometry( editor ) );
-	container.addPanel( 'material', strings.getKey( 'sidebar/properties/material' ), new Sidebar.Material( editor ) );
+	container.addTab( 'object', strings.getKey( 'sidebar/properties/object' ), new Sidebar.Object( editor ) );
+	container.addTab( 'geometry', strings.getKey( 'sidebar/properties/geometry' ), new Sidebar.Geometry( editor ) );
+	container.addTab( 'material', strings.getKey( 'sidebar/properties/material' ), new Sidebar.Material( editor ) );
 
 
 	return container;
 	return container;
 
 

+ 3 - 3
editor/js/Sidebar.js

@@ -21,9 +21,9 @@ var Sidebar = function ( editor ) {
 		new Sidebar.History( editor )
 		new Sidebar.History( editor )
 	);
 	);
 
 
-	container.addPanel( 'scene', strings.getKey( 'sidebar/scene' ), scene );
-	container.addPanel( 'project', strings.getKey( 'sidebar/project' ), new Sidebar.Project( editor ) );
-	container.addPanel( 'settings', strings.getKey( 'sidebar/settings' ), settings );
+	container.addTab( 'scene', strings.getKey( 'sidebar/scene' ), scene );
+	container.addTab( 'project', strings.getKey( 'sidebar/project' ), new Sidebar.Project( editor ) );
+	container.addTab( 'settings', strings.getKey( 'sidebar/settings' ), settings );
 
 
 	return container;
 	return container;
 
 

+ 1 - 1
editor/js/libs/ui.js

@@ -1092,7 +1092,7 @@ UI.TabbedPanel.prototype.select = function ( id ) {
 
 
 }
 }
 
 
-UI.TabbedPanel.prototype.addPanel = function ( id, label, items ) {
+UI.TabbedPanel.prototype.addTab = function ( id, label, items ) {
 
 
 	var tab = new UI.TabbedPanel.Tab( label, this );
 	var tab = new UI.TabbedPanel.Tab( label, this );
 	tab.setId( id );
 	tab.setId( id );