Przeglądaj źródła

Other: Revert icon hack from ButtonView.

Maciej Gołaszewski 7 lat temu
rodzic
commit
1959e81782
1 zmienionych plików z 1 dodań i 4 usunięć
  1. 1 4
      packages/ckeditor5-ui/src/button/buttonview.js

+ 1 - 4
packages/ckeditor5-ui/src/button/buttonview.js

@@ -178,9 +178,6 @@ export default class ButtonView extends View {
 		 */
 		this.labelView = this._createLabelView();
 
-		// TODO: used for Icon style hack in Highlight UI
-		this.iconView = new IconView();
-
 		/**
 		 * Tooltip of the button bound to the template.
 		 *
@@ -255,7 +252,7 @@ export default class ButtonView extends View {
 		super.render();
 
 		if ( this.icon ) {
-			const iconView = this.iconView;
+			const iconView = this.iconView = new IconView();
 
 			iconView.bind( 'content' ).to( this, 'icon' );