From a517c8b92ba6b099197b5d20cc29503d83fbaf11 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Wed, 29 May 2024 22:59:32 +0200 Subject: [PATCH] chore: standalone `clear` implementation --- lib/clear.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/clear.js b/lib/clear.js index ad30be3..92ce03a 100644 --- a/lib/clear.js +++ b/lib/clear.js @@ -2,8 +2,6 @@ * Clear utility */ -import remove from './remove'; - /** * Removes all children from the given element * @@ -14,7 +12,7 @@ export default function clear(element) { var child; while ((child = element.firstChild)) { - remove(child); + element.removeChild(child); } return element;