[openstreetmap/openstreetmap-website] Remove jQuery throttle-debounce dependency (PR #6811)
Holger Jeromin
notifications at github.com
Tue Mar 3 07:11:55 UTC 2026
@HolgerJeromin commented on this pull request.
> @@ -2,6 +2,15 @@
/* globals iD */
+(() => {
+ const originalReplaceState = window.history.replaceState;
+ window.history.replaceState = function (...args) {
+ const result = originalReplaceState.apply(this, args);
+ window.dispatchEvent(new CustomEvent("replaceHistoryState", { detail: args }));
+ return result;
+ };
+})();
I do not like this approach as you know, but it is not unusual in JS world.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6811#discussion_r2876543939
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6811/review/3880711240 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260302/968557dd/attachment.htm>
More information about the rails-dev
mailing list