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

Commit

Permalink
Removed unnecessary check for position parent.
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonkups committed Mar 8, 2018
1 parent 83ba21a commit d90354f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/documentselection.js
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ function clearAttributesStoredInElement( model, batch ) {
const differ = model.document.differ;

for ( const entry of differ.getChanges() ) {
if ( entry.type != 'insert' || !entry.position.parent ) {
if ( entry.type != 'insert' ) {
continue;
}

Expand Down

0 comments on commit d90354f

Please sign in to comment.