Skip to content

Commit

Permalink
Remove internal function from the scope of the parent.
Browse files Browse the repository at this point in the history
  • Loading branch information
jodator committed Sep 9, 2020
1 parent aa70315 commit 819c3c7
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions packages/ckeditor5-list/src/liststyleediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,16 +566,17 @@ function getChangedListItems( changes ) {
}

return items;
}

function getItemFromChange( change ) {
if ( change.type === 'attribute' ) {
return change.range.start.nodeAfter;
}

if ( change.type === 'insert' ) {
return change.position.nodeAfter;
}
function getItemFromChange( change ) {
if ( change.type === 'attribute' ) {
return change.range.start.nodeAfter;
}

return null;
if ( change.type === 'insert' ) {
return change.position.nodeAfter;
}

return null;
}

0 comments on commit 819c3c7

Please sign in to comment.