Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Other: Remove Array.from needed for old Edge engine. ckeditor/ckedito…
Browse files Browse the repository at this point in the history
…r5#6202

Use, plain `for ... of  .childNodes`, as agreed at ckeditor/ckeditor5-utils#333 (comment) .
  • Loading branch information
tomalec committed Apr 20, 2020
1 parent 366a63d commit 67087ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 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 67087ae

Please sign in to comment.