From 2330df85682864849b1bb6afda59299900a2d568 Mon Sep 17 00:00:00 2001 From: Damandeep Singh Date: Sat, 12 Jul 2025 23:43:51 +0530 Subject: [PATCH 1/2] fix(component.js) : Updated JS Doc for removeChild() --- src/js/component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/component.js b/src/js/component.js index 5fc4835a78..6be59ebf3f 100644 --- a/src/js/component.js +++ b/src/js/component.js @@ -689,7 +689,7 @@ class Component { * Remove a child `Component` from this `Component`s list of children. Also removes * the child `Component`s element from this `Component`s element. * - * @param {Component} component + * @param {string|Component} component * The child `Component` to remove. */ removeChild(component) { From 6803f93771f51aea2257446b029c86ec31d8c6f7 Mon Sep 17 00:00:00 2001 From: Damandeep Singh Date: Sat, 12 Jul 2025 23:52:43 +0530 Subject: [PATCH 2/2] chore: updated comment for removeChild() --- src/js/component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/component.js b/src/js/component.js index 6be59ebf3f..8ba1079db6 100644 --- a/src/js/component.js +++ b/src/js/component.js @@ -690,7 +690,7 @@ class Component { * the child `Component`s element from this `Component`s element. * * @param {string|Component} component - * The child `Component` to remove. + * The name or instance of a child to remove. */ removeChild(component) { if (typeof component === 'string') {