Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31f8d7c

Browse files
authored
fix: Component.js string arg type for for removeChild (#9070)
1 parent 09eb715 commit 31f8d7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,8 @@ class Component {
689689
* Remove a child `Component` from this `Component`s list of children. Also removes
690690
* the child `Component`s element from this `Component`s element.
691691
*
692-
* @param {Component} component
693-
* The child `Component` to remove.
692+
* @param {string|Component} component
693+
* The name or instance of a child to remove.
694694
*/
695695
removeChild(component) {
696696
if (typeof component === 'string') {

0 commit comments

Comments
 (0)