From 4ed67ad54aab456ff67bce8c7687fecb7580d02e Mon Sep 17 00:00:00 2001 From: Tan Li Hau Date: Thu, 1 Oct 2020 08:57:58 +0800 Subject: [PATCH] Update src/runtime/slot/index.ts Co-authored-by: Luke Edwards --- src/runtime/slot/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/slot/index.ts b/src/runtime/slot/index.ts index b2036c5cb6..37e526083b 100644 --- a/src/runtime/slot/index.ts +++ b/src/runtime/slot/index.ts @@ -13,7 +13,7 @@ function create_root_slot_fn(elements) { d: function destroy(detaching) { if (detaching) { - elements.forEach(element => detach(element)); + elements.forEach(detach); } },