浏览代码

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

Aleksander Nowodzinski 9 年之前
父节点
当前提交
5e3fa0dabc
共有 1 个文件被更改,包括 2 次插入2 次删除
  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