Procházet zdrojové kódy

Use forEach instead of map.

Aleksander Nowodzinski před 10 roky
rodič
revize
d7f2f9f9cd
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 );
 		}
 	}
 }