Sfoglia il codice sorgente

Fixed code style issues.

Piotrek Koszuliński 9 anni fa
parent
commit
3cba42e552
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      packages/ckeditor5-heading/src/formats.js

+ 3 - 3
packages/ckeditor5-heading/src/formats.js

@@ -44,14 +44,14 @@ export default class Formats extends Feature {
 			content: itemListModel
 		} );
 
-		//Bind dropdown model to command.
+		// Bind dropdown model to command.
 		dropdownModel.bind( 'isEnabled' ).to( command, 'isEnabled' );
-		dropdownModel.bind( 'label' ).to( command, 'format', ( format ) => {
+		dropdownModel.bind( 'label' ).to( command, 'format', format => {
 			return format.label;
 		} );
 
 		// Execute command when item from dropdown is selected.
-		this.listenTo( itemListModel, 'execute', ( evtInfo, itemModel ) => {
+		this.listenTo( itemListModel, 'execute', ( evt, itemModel ) => {
 			editor.execute( 'format', itemModel.id );
 			dropdownModel.label = itemModel.label;
 		} );