8
0
Просмотр исходного кода

Changed: Remove `dropdown.buttonView` bindings to `dropdown`.

Maciej Gołaszewski 8 лет назад
Родитель
Сommit
03ae05d2bf
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/ckeditor5-heading/src/heading.js

+ 2 - 2
packages/ckeditor5-heading/src/heading.js

@@ -75,7 +75,7 @@ export default class Heading extends Plugin {
 			const dropdownView = createDropdown( locale );
 			addListToDropdown( dropdownView, dropdownItems );
 
-			dropdownView.set( {
+			dropdownView.buttonView.set( {
 				isOn: false,
 				withText: true,
 				tooltip: dropdownTooltip
@@ -93,7 +93,7 @@ export default class Heading extends Plugin {
 				return areEnabled.some( isEnabled => isEnabled );
 			} );
 
-			dropdownView.bind( 'label' ).toMany( commands, 'value', ( ...areActive ) => {
+			dropdownView.buttonView.bind( 'label' ).toMany( commands, 'value', ( ...areActive ) => {
 				const index = areActive.findIndex( value => value );
 
 				// If none of the commands is active, display default title.