Explorar el Código

Fixed: There's no need to call addChildren() for views which are refered in View#template anymore.

Aleksander Nowodzinski hace 9 años
padre
commit
5e3fa0dabc
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      packages/ckeditor5-ui/src/dropdown/dropdownview.js

+ 2 - 2
packages/ckeditor5-ui/src/dropdown/dropdownview.js

@@ -28,7 +28,7 @@ export default class DropdownView extends View {
 		 * @readonly
 		 * @member {ui.button.ButtonView} #buttonView
 		 */
-		this.addChildren( this.buttonView = buttonView );
+		this.buttonView = buttonView;
 
 		/**
 		 * Panel of this dropdown view.
@@ -36,7 +36,7 @@ export default class DropdownView extends View {
 		 * @readonly
 		 * @member {module:ui/dropdown/dropdownpanelview~DropdownPanelView} #panelView
 		 */
-		this.addChildren( this.panelView = panelView );
+		this.panelView = panelView;
 
 		/**
 		 * Controls whether the dropdown view is open, which also means its