Преглед на файлове

Use forEach instead of map.

Aleksander Nowodzinski преди 10 години
родител
ревизия
d7f2f9f9cd
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/ckeditor5-engine/src/ui/view.js

+ 1 - 1
packages/ckeditor5-engine/src/ui/view.js

@@ -424,7 +424,7 @@ export default class View {
 
 		// Repeat recursively for the children.
 		if ( def.children ) {
-			def.children.map( this._createTemplateListenerAttachers, this );
+			def.children.forEach( this._createTemplateListenerAttachers, this );
 		}
 	}
 }