Skip to content

Commit

Permalink
Merge pull request #16 from hugojosefson/patch-1
Browse files Browse the repository at this point in the history
Allow props to be null or undefined, for parcel.js
  • Loading branch information
ryansolid authored Jun 19, 2020
2 parents e284bc7 + 62da817 commit 895e847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hyper-dom-expressions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function createHyperScript(r: Runtime): HyperScript {
let props: Props = {},
dynamic = [],
next = args[0];
if (typeof next === "object" && !Array.isArray(next) && !(next instanceof Element))
if (typeof next === "object" && next != null && !Array.isArray(next) && !(next instanceof Element))
props = args.shift();
for (const k in props) {
if (typeof props[k] === "function") dynamic.push(k);
Expand Down

0 comments on commit 895e847

Please sign in to comment.