From dc7ebd7491bb603b1adc6a172f277d80994ae0fd Mon Sep 17 00:00:00 2001 From: Azgaar Date: Fri, 10 May 2019 00:04:07 +0300 Subject: [PATCH] v 0.8.20b --- modules/ui/burg-editor.js | 2 +- modules/ui/options.js | 2 +- modules/ui/tools.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ui/burg-editor.js b/modules/ui/burg-editor.js index b13be994..100535b4 100644 --- a/modules/ui/burg-editor.js +++ b/modules/ui/burg-editor.js @@ -9,7 +9,7 @@ function editBurg() { elSelected = burgLabels.select("[data-id='" + id + "']"); burgLabels.selectAll("text").call(d3.drag().on("start", dragBurgLabel)).classed("draggable", true); - selectBurgGroup(event.target); + selectBurgGroup(d3.event.target); document.getElementById("burgNameInput").value = elSelected.text(); const my = elSelected.attr("id") == d3.event.target.id ? "center bottom" : "center top+10"; const at = elSelected.attr("id") == d3.event.target.id ? "top" : "bottom"; diff --git a/modules/ui/options.js b/modules/ui/options.js index f9938730..f545bc9c 100644 --- a/modules/ui/options.js +++ b/modules/ui/options.js @@ -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); diff --git a/modules/ui/tools.js b/modules/ui/tools.js index 0501b2b4..a4d00c40 100644 --- a/modules/ui/tools.js +++ b/modules/ui/tools.js @@ -1,7 +1,7 @@ // module to control the Tools options (click to edit, to re-geenerate, tp add) "use strict"; -toolsContent.addEventListener("click", function() { +toolsContent.addEventListener("click", function(event) { if (customization) {tip("Please exit the customization mode first", false, "warning"); return;} if (event.target.tagName !== "BUTTON") return; const button = event.target.id;