8
0
Prechádzať zdrojové kódy

Used Collection.bindTo#using syntax in createListDropdown helper.

Aleksander Nowodzinski 8 rokov pred
rodič
commit
9f3e2bd5fd

+ 1 - 1
packages/ckeditor5-ui/src/dropdown/list/createlistdropdown.js

@@ -26,7 +26,7 @@ export default function createListDropdown( model, locale ) {
 
 	const listView = dropdownView.listView = new ListView( locale );
 
-	listView.items.bindTo( model.items ).as( itemModel => {
+	listView.items.bindTo( model.items ).using( itemModel => {
 		const item = new ListItemView( locale );
 
 		// Bind all attributes of the model to the item view.