mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
9 lines
237 B
JavaScript
9 lines
237 B
JavaScript
const byId = document.getElementById.bind(document);
|
|
|
|
Node.prototype.on = function (name, fn, options) {
|
|
this.addEventListener(name, fn, options);
|
|
};
|
|
|
|
Node.prototype.off = function (name, fn) {
|
|
this.removeEventListener(name, fn);
|
|
};
|