mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-04 17:41:23 +01:00
chore: split public and src
This commit is contained in:
parent
9a8eb05b9c
commit
76f86497c7
684 changed files with 2 additions and 1 deletions
11
public/utils/shorthands.js
Normal file
11
public/utils/shorthands.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
const byId = document.getElementById.bind(document);
|
||||
|
||||
Node.prototype.on = function (name, fn, options) {
|
||||
this.addEventListener(name, fn, options);
|
||||
return this;
|
||||
};
|
||||
|
||||
Node.prototype.off = function (name, fn) {
|
||||
this.removeEventListener(name, fn);
|
||||
return this;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue