瀏覽代碼

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 );
 			} );
 		}