Browse Source

Use forEach instead of map.

Aleksander Nowodzinski 10 năm trước cách đây
mục cha
commit
d7f2f9f9cd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 );
 		}
 	}
 }