From 5d2c5e63a5b7848054c2be4bf2cf8853dc9b84d4 Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Tue, 19 Apr 2022 11:47:43 +0200 Subject: [PATCH] lint, add to changelog --- CHANGELOG.md | 4 +++- modules/core/validator.js | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ba7286ac..f6c6bec18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,7 @@ _Breaking developer changes, which may affect downstream projects or sites that * Fix KeepRight warnings showing up as "Unknown" issues ([#8925]) * Fix W keyboard shortcut not working on MacOS in certain system languages / keyboard layouts (e.g. Spanish) ([#8905]) * Render closed ways tagged as `public_transport=platform`, `waterway=dam` or `highway=elevator` as areas ([#8985]) +* Fix a bug which caused validations to not take effect in certain situations ([#9021], thanks [@mbrzakovic]) #### :rocket: Presets * Optimize order of values in dropdowns of `access` fields ([#8945]) * Use value of `vehicle` tag as placeholder value of `access` fields for `motor_vehicle` and `bicycle` @@ -58,7 +59,7 @@ _Breaking developer changes, which may affect downstream projects or sites that #### Other * Redact more API tokens from custom imagery sources in changeset metadata tags ([#8976], thanks [@k-yle]) #### :hammer: Development -* Switch build system to [esbuild](https://esbuild.github.io/) for much faster builds ([#8774], thanks [@ mbrzakovic] and [@bhousel]) +* Switch build system to [esbuild](https://esbuild.github.io/) for much faster builds ([#8774], thanks [@mbrzakovic] and [@bhousel]) * Upgrade some dependencies: maki to `v7.1`, `fontawesome` to `v6`, `d3` to `v7.3`, `node-diff` to `v3.1`, `mocha` to `v9.2`, `svg-sprite` to `v1.5.4`, `marked` to `v4.0` [#8774]: https://github.com/openstreetmap/iD/pull/8774 @@ -71,6 +72,7 @@ _Breaking developer changes, which may affect downstream projects or sites that [#8963]: https://github.com/openstreetmap/iD/issues/8963 [#8976]: https://github.com/openstreetmap/iD/issues/8976 [#8985]: https://github.com/openstreetmap/iD/issues/8985 +[#9021]: https://github.com/openstreetmap/iD/pull/9021 # 2.20.4 diff --git a/modules/core/validator.js b/modules/core/validator.js index badff3d55..58a8b7700 100644 --- a/modules/core/validator.js +++ b/modules/core/validator.js @@ -103,7 +103,10 @@ export function coreValidator(context) { _headCache.queue = []; // cancel deferred work and reject any pending promise - Object.keys(_deferredRIC).forEach(key => {window.cancelIdleCallback(key); _deferredRIC[key](); }); + Object.keys(_deferredRIC).forEach(key => { + window.cancelIdleCallback(key); + _deferredRIC[key](); + }); _deferredRIC = {}; _deferredST.forEach(window.clearTimeout); _deferredST.clear();