add function to define new element, possibly highly useful when injecting
This commit is contained in:
parent
c31fccbcaf
commit
9aef7710f2
1 changed files with 2 additions and 0 deletions
|
@ -22,5 +22,7 @@ export default class interface {
|
||||||
} else if ((typeof element_class).includes(`str`)) {
|
} else if ((typeof element_class).includes(`str`)) {
|
||||||
element_new.classList.add(element_class);
|
element_new.classList.add(element_class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return (element_new);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue