1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-14 18:10:53 +00:00

Clean up player logic a bit.

This commit is contained in:
SirStendec 2018-04-03 15:20:11 -04:00
parent cbdf3040e3
commit 9aafff3a14
2 changed files with 58 additions and 51 deletions

View file

@ -30,6 +30,16 @@ function camelCase(name) {
}
export function on(obj, ...args) {
return obj.addEventListener(...args);
}
export function off(obj, ...args) {
return obj.removeEventListener(...args);
}
export function createElement(tag, props, ...children) {
const el = document.createElement(tag);