Added event arguments to listeners that didn't have them

This commit is contained in:
Michael H. Potter 2019-05-09 08:33:31 -04:00
parent 3e4c2662ef
commit 6d9c07076a
3 changed files with 3 additions and 3 deletions

View file

@ -575,7 +575,7 @@ function fetchTextureURL(url) {
// Style map filters handler
mapFilters.addEventListener("click", applyMapFilter);
function applyMapFilter() {
function applyMapFilter(event) {
if (event.target.tagName !== "BUTTON") return;
const button = event.target;
svg.attr("filter", null);