marko 5.32.13 → 5.32.15

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.
@@ -172,7 +172,7 @@ renderingLogic)
172
172
  // so we don't want to queue it up as a result of calling `setInput()`
173
173
  component.___ = true;
174
174
 
175
- if (customEvents !== undefined) {
175
+ if (customEvents) {
176
176
  component.aB_(customEvents, ownerComponentId);
177
177
  }
178
178
 
@@ -28,7 +28,10 @@ exports.i = function attrTagInput(render, input) {
28
28
  var prevOwnerInput = ownerInput;
29
29
  ownerInput = input || {};
30
30
  try {
31
- ownerInput.renderBody = render();
31
+ var renderBody = render();
32
+ if (renderBody) {
33
+ ownerInput.renderBody = renderBody;
34
+ }
32
35
  return ownerInput;
33
36
  } finally {
34
37
  ownerInput = prevOwnerInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "5.32.13",
3
+ "version": "5.32.15",
4
4
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
5
5
  "keywords": [
6
6
  "front-end",
@@ -172,7 +172,7 @@ function createRendererFunc(
172
172
  // so we don't want to queue it up as a result of calling `setInput()`
173
173
  component.___updateQueued = true;
174
174
 
175
- if (customEvents !== undefined) {
175
+ if (customEvents) {
176
176
  component.___setCustomEvents(customEvents, ownerComponentId);
177
177
  }
178
178
 
@@ -28,7 +28,10 @@ exports.i = function attrTagInput(render, input) {
28
28
  var prevOwnerInput = ownerInput;
29
29
  ownerInput = input || {};
30
30
  try {
31
- ownerInput.renderBody = render();
31
+ var renderBody = render();
32
+ if (renderBody) {
33
+ ownerInput.renderBody = renderBody;
34
+ }
32
35
  return ownerInput;
33
36
  } finally {
34
37
  ownerInput = prevOwnerInput;