8
0
Oskar Wrobel 9 лет назад
Родитель
Сommit
8fdff60125
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      packages/ckeditor5-engine/tests/_utils/model.js

+ 2 - 3
packages/ckeditor5-engine/tests/_utils/model.js

@@ -406,8 +406,7 @@ function stringifyAttributeValue( data ) {
 
 // Loop trough attributes map and converts each value by passed converter.
 function *convertAttributes( attributes, converter ) {
-	for ( let attribute of attributes ) {
-		attribute[ 1 ] = converter( attribute[ 1 ] );
-		yield attribute;
+	for ( let [ key, value ] of attributes ) {
+		yield [ key, converter( value ) ];
 	}
 }