mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
11 lines
267 B
JavaScript
11 lines
267 B
JavaScript
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;
|
|
};
|