Add check for null in skooma as well
This commit is contained in:
parent
f6556d369a
commit
53a5b95493
1 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,8 @@ const parseArgs = (element, before, ...args) => {
|
|||
element.insertBefore(document.createTextNode(arg), before)
|
||||
else if (arg === undefined)
|
||||
console.warn(`Argument is ${typeof arg}`, element)
|
||||
else if (arg === null)
|
||||
console.warn(`Argument is ${typeof arg}`, element)
|
||||
else if (typeof arg == "function")
|
||||
arg(element)
|
||||
else if ("nodeName" in arg)
|
||||
|
|
Loading…
Reference in a new issue