소스 검색

Removed some leftovers.

Krzysztof Krztoń 7 년 전
부모
커밋
c1ba0130a6
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      packages/ckeditor5-typing/src/utils/injectandroidbackspacemutationshandling.js

+ 1 - 3
packages/ckeditor5-typing/src/utils/injectandroidbackspacemutationshandling.js

@@ -54,11 +54,9 @@ export default function injectAndroidBackspaceMutationsHandling( editor ) {
 	// and delete observer will not be triggered. In such cases we need to handle
 	// container removal mutations manually.
 	function handleContainerRemovalMutations() {
-		const selection = shouldUsePreviousSelection( currentSelection, previousSelection ) ? previousSelection : currentSelection;
-
 		if ( shouldUsePreviousSelection( currentSelection, previousSelection ) ) {
 			model.enqueueChange( writer => {
-				writer.setSelection( selection );
+				writer.setSelection( previousSelection );
 			} );
 		}