Skip to content

Commit

Permalink
Other: Remove Array.from needed for old Edge engine. #6202
Browse files Browse the repository at this point in the history
Use, plain `for ... of  .childNodes`, as agreed at ckeditor/ckeditor5-utils#333 (comment) .
  • Loading branch information
tomalec committed Apr 20, 2020
1 parent a6e2bcf commit d376a9f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/ckeditor5-engine/src/view/domconverter.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ export default class DomConverter {
this._domToViewMapping.delete( domElement );
this._viewToDomMapping.delete( viewElement );

// Use Array.from because of MS Edge (#923).
for ( const child of Array.from( domElement.childNodes ) ) {
for ( const child of domElement.childNodes ) {
this.unbindDomElement( child );
}
}
Expand Down

0 comments on commit d376a9f

Please sign in to comment.