Explorar o código

Remove internal function from the scope of the parent.

Maciej Gołaszewski %!s(int64=5) %!d(string=hai) anos
pai
achega
819c3c7864
Modificáronse 1 ficheiros con 10 adicións e 9 borrados
  1. 10 9
      packages/ckeditor5-list/src/liststyleediting.js

+ 10 - 9
packages/ckeditor5-list/src/liststyleediting.js

@@ -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;
 }
+