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

Commit

Permalink
Minor improvement.
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarwrobel committed Aug 8, 2019
1 parent 4b3e6fe commit 1dd136b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/todolistediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function moveUIElementsAfterCheckmark( writer, uiElements ) {
let hasChanged = false;

for ( const uiElement of uiElements ) {
const listItem = findListItemAncestor( uiElement );
const listItem = findViewListItemAncestor( uiElement );
const positionAtListItem = writer.createPositionAt( listItem, 0 );
const positionBeforeUiElement = writer.createPositionBefore( uiElement );

Expand Down Expand Up @@ -217,7 +217,7 @@ function getChangedCheckmarkElements( editingView ) {
// @private
// @param {module:engine/view/item~Item} item
// @returns {module:engine/view/element~Element}
function findListItemAncestor( item ) {
function findViewListItemAncestor( item ) {
for ( const parent of item.getAncestors( { parentFirst: true } ) ) {
if ( parent.name == 'li' ) {
return parent;
Expand Down

0 comments on commit 1dd136b

Please sign in to comment.