From b378b17076de3eff7a8b8bfb83b3bd88c3b278fc Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 12 Sep 2019 00:37:44 -0400 Subject: [PATCH] chore: remove unnecessary code --- packages/runtime-core/src/createRenderer.ts | 1 - packages/runtime-dom/src/nodeOps.ts | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/runtime-core/src/createRenderer.ts b/packages/runtime-core/src/createRenderer.ts index 020f7c8f..4a391847 100644 --- a/packages/runtime-core/src/createRenderer.ts +++ b/packages/runtime-core/src/createRenderer.ts @@ -1517,7 +1517,6 @@ export function createRenderer< anchor ) suspense.container = container - // suspense.anchor = anchor return } if (vnode.type === Fragment) { diff --git a/packages/runtime-dom/src/nodeOps.ts b/packages/runtime-dom/src/nodeOps.ts index bea0a687..e7b3e86b 100644 --- a/packages/runtime-dom/src/nodeOps.ts +++ b/packages/runtime-dom/src/nodeOps.ts @@ -32,12 +32,7 @@ export const nodeOps = { el.textContent = text }, - parentNode: (node: Node): Node | null => { - if (!node) { - debugger - } - return node.parentNode - }, + parentNode: (node: Node): Node | null => node.parentNode, nextSibling: (node: Node): Node | null => node.nextSibling,