Skip to content

Commit

Permalink
Fixed issue where click events were being re-registered when the gene…
Browse files Browse the repository at this point in the history
… changed
  • Loading branch information
jorvis committed Aug 9, 2024
1 parent 94c7be6 commit 8421ed8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions www/plugins/deafness_gene_annotation/expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ function add_dga_button_listeners() {
let dm = item.closest('.dropdown');

if (dm.classList.contains('is-active')) {
console.log("removing active class");
dm.classList.remove('is-active');
} else {
console.log("adding active class");
dm.classList.add('is-active');
}

Expand Down Expand Up @@ -202,4 +200,4 @@ fetch("./plugins/deafness_gene_annotation/mgi_data.json")
});

geneChangeCallbacks.push(deafness_plugin_gene_change);
geneChangeCallbacks.push(add_dga_button_listeners);
add_dga_button_listeners();

0 comments on commit 8421ed8

Please sign in to comment.