Explorar el Código

Use forEach instead of map.

Aleksander Nowodzinski hace 10 años
padre
commit
d7f2f9f9cd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 );
 		}
 	}
 }