mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-16 17:31:24 +01:00
* refactor: submap - start * refactor: submap - continue * Merge branch 'master' of https://github.com/Azgaar/Fantasy-Map-Generator into submap-refactoring * refactor: submap - relocate burgs * refactor: submap - restore routes * refactor: submap - restore lake names * refactor: submap - UI update * refactor: submap - restore river and biome data * refactor: submap - simplify options * refactor: submap - restore rivers * refactor: submap - recalculateMapSize * refactor: submap - add middle points * refactor: submap - don't add middle points, unified findPath fn * chore: update version * feat: submap - relocate out of map regiments * feat: submap - fix route gen * feat: submap - allow custom number of cells * feat: submap - add checkbox submapRescaleBurgStyles * feat: submap - update version hash * chore: supporters update --------- Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
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;
|
|
};
|