Skip to content

Commit

Permalink
Remove unnecessary event (#2587)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Dec 9, 2021
1 parent 5c91a0c commit 5e7bd5f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/javascript/blacklight/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,7 @@ const Modal = (() => {
.done(Blacklight.modal.receiveAjax)
}



Blacklight.modal.setupModal = function() {
// Event indicating blacklight is setting up a modal link,
// you can catch it and call e.preventDefault() to abort
// setup.
var e = $.Event('setup.blacklight.blacklight-modal');
$('body').trigger(e);
if (e.isDefaultPrevented()) return;

// Register both trigger and preserve selectors in ONE event handler, combining
// into one selector with a comma, so if something matches BOTH selectors, it
// still only gets the event handler called once.
Expand Down

0 comments on commit 5e7bd5f

Please sign in to comment.