Explorar o código

Docs (ui): Fix a typo in dropdown utils jsdoc.

Maciej Gołaszewski %!s(int64=5) %!d(string=hai) anos
pai
achega
98f8ee7a45
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/ckeditor5-ui/src/dropdown/utils.js

+ 1 - 1
packages/ckeditor5-ui/src/dropdown/utils.js

@@ -110,7 +110,7 @@ export function createDropdown( locale, ButtonClass = DropdownButtonView ) {
  *
  *
  *		// Either create a new ButtonView instance or create existing.
  *		// Either create a new ButtonView instance or create existing.
  *		buttons.push( new ButtonView() );
  *		buttons.push( new ButtonView() );
- *		buttons.push( editor.ui.componentFactory.get( 'someButton' ) );
+ *		buttons.push( editor.ui.componentFactory.create( 'someButton' ) );
  *
  *
  *		const dropdown = createDropdown( locale );
  *		const dropdown = createDropdown( locale );
  *
  *