@estjs/template 0.0.16-beta.6 → 0.0.16-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -852,12 +852,14 @@ var Component = class {
852
852
  if (!root) return;
853
853
  this.releaseSpecialProps();
854
854
  for (const key of Object.getOwnPropertyNames(props)) {
855
- const value = readProp(props, key);
856
855
  if (key === REF_KEY) {
856
+ const value = readProp(props, key);
857
857
  this.rootRefCleanup = this.bindRootRef(value, root);
858
858
  continue;
859
859
  }
860
- if (isOn(key) && isFunction(value)) {
860
+ if (isOn(key)) {
861
+ const value = readProp(props, key);
862
+ if (!isFunction(value)) continue;
861
863
  const eventName = key.slice(2).toLowerCase();
862
864
  this.rootEventCleanups.push(addEvent(root, eventName, value));
863
865
  }
@@ -1291,8 +1293,9 @@ function omitProps(target, keys) {
1291
1293
 
1292
1294
  // src/components/Fragment.ts
1293
1295
  function Fragment(props) {
1294
- if (!props || props.children == null) return null;
1295
- return props.children;
1296
+ const children = props == null ? void 0 : props.children;
1297
+ if (children == null) return null;
1298
+ return children;
1296
1299
  }
1297
1300
  Fragment[FRAGMENT_COMPONENT] = true;
1298
1301
  function isFragment(node) {