Skip to content

Commit

Permalink
fix: issue with using flags before defined
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Jan 14, 2021
1 parent c1daa2d commit 8740f93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/marko/src/runtime/components/ComponentDef.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ ComponentDef.prototype.nk = ComponentDef.prototype.___nextKey;
ComponentDef.___deserialize = function(o, types, global, registry) {
var id = o[0];
var typeName = types[o[1]];
var input = o[2] || (flags & FLAG_HAS_RENDER_BODY ? {} : null);
var input = o[2] || null;
var extra = o[3] || EMPTY_OBJECT;

var state = extra.s;
Expand All @@ -112,7 +112,7 @@ ComponentDef.___deserialize = function(o, types, global, registry) {
component.widgetConfig = componentProps;
component.___widgetBody = renderBody;
} else if (renderBody) {
input.renderBody = renderBody;
(input || (input = {})).renderBody = renderBody;
}

if (
Expand Down

0 comments on commit 8740f93

Please sign in to comment.