Skip to content

Commit

Permalink
p5.dom: Fixed typeof check
Browse files Browse the repository at this point in the history
Signed-off-by: austin <[email protected]>
  • Loading branch information
austince committed Jan 31, 2018
1 parent daacbdc commit f526c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/addons/p5.dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 294,7 @@
var method = 'create' tag.charAt(0).toUpperCase() tag.slice(1);
p5.prototype[method] = function(html) {
var elt = document.createElement(tag);
elt.innerHTML = typeof html === undefined ? '' : html;
elt.innerHTML = typeof html === 'undefined' ? '' : html;
return addElement(elt, this);
};
});
Expand Down

0 comments on commit f526c8d

Please sign in to comment.