Browse Source

MINOR,FEAT: return parent if child is undefined to allow empty method stubs

dev-feat-component_preview
chris 2 months ago
parent
commit
c228b251b2
  1. 2
      src/componentAncestry/wrapperComponent.js

2
src/componentAncestry/wrapperComponent.js

@ -189,6 +189,8 @@ class ChildbearerComponent extends ElementWrapper {
* @returns {Component} this component object * @returns {Component} this component object
*/ */
childContext(component) { childContext(component) {
if (!component) return this;
if (arguments.length > 1) { if (arguments.length > 1) {
for (let i = 0; i < arguments.length; i++) { for (let i = 0; i < arguments.length; i++) {
this.childContext(arguments[i]); this.childContext(arguments[i]);

Loading…
Cancel
Save