Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Vendorfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
folder 'vendor/assets' do
folder 'jquery' do
file 'jquery.throttle-debounce.js', 'https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/v1.1/jquery.ba-throttle-debounce.js'
end

folder 'leaflet' do
from 'https://github.com/kajic/leaflet-locationfilter.git' do
file 'leaflet.locationfilter.css', 'src/locationfilter.css'
Expand Down
1 change: 0 additions & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//= require jquery3
//= require jquery_ujs
//= require jquery.throttle-debounce
//= require js-cookie/dist/js.cookie
//= require popper
//= require bootstrap-sprockets
Expand Down
4 changes: 2 additions & 2 deletions app/assets/javascripts/id.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ document.addEventListener("DOMContentLoaded", function () {
}

let hashChangedAutomatically = false;
id.map().on("move.embed", parent.$.throttle(250, function () {
id.map().on("hash-update.embed", function () {
if (id.inIntro()) return;
const zoom = ~~id.map().zoom(),
center = id.map().center(),
Expand All @@ -50,7 +50,7 @@ document.addEventListener("DOMContentLoaded", function () {
hashChangedAutomatically = true;
parent.location.replace(parent.location.href.replace(/(#.*|$)/, hash));
}
}));
});

function goToLocation(data) {
// 0ms timeout to avoid iframe JS context weirdness.
Expand Down
252 changes: 0 additions & 252 deletions vendor/assets/jquery/jquery.throttle-debounce.js

This file was deleted.