Skip to content

Commit

Permalink
util.VNode: findChildVnodeById() => getById() #6117
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiu committed Nov 18, 2024
1 parent ffbb09c commit 8c19e5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/VNode.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class VNode extends Base {
* @param {String|null} id
* @returns {Object|null} child vnode or null
*/
static findChildVnodeById(vnode, id) {
static getById(vnode, id) {
vnode = VNode.getVnode(vnode);

let childNodes = vnode.childNodes || [],
Expand All @@ -133,7 +133,7 @@ class VNode extends Base {
return childNode
}

childNode = VNode.findChildVnodeById(childNode, id);
childNode = VNode.getById(childNode, id);

if (childNode) {
return childNode
Expand Down

0 comments on commit 8c19e5f

Please sign in to comment.