Skip to content

Commit

Permalink
morebits: quickform: handle undefined label
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Oct 12, 2021
1 parent ce150c0 commit dc6c0a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions morebits/morebits.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ Morebits.pageNameRegex = function(pageName) {
*/
Morebits.createHtml = function(input) {
var fragment = document.createDocumentFragment();
if (!input) {
return fragment;
}
if (!Array.isArray(input)) {
input = [ input ];
}
Expand Down

0 comments on commit dc6c0a5

Please sign in to comment.