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:
parent
cbdf3040e3
commit
9aafff3a14
2 changed files with 58 additions and 51 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue