Skip to content

Commit

Permalink
Merge pull request #3422 from jdufresne/iife
Browse files Browse the repository at this point in the history
Remove unnecessary IIFE from ra.sidescroll.js
  • Loading branch information
mshibuya committed Nov 21, 2021
2 parents d79d49e + b560b31 commit e7fc7a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/assets/javascripts/rails_admin/ra.sidescroll.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function ($) {
"use strict";
"use strict";

{
document.addEventListener("rails_admin.dom_ready", () => {
const listForm = document.getElementById("bulk_form");
if (!listForm || !listForm.classList.contains("ra-sidescroll")) {
Expand All @@ -24,4 +24,4 @@
});
});
});
})(jQuery);
}

0 comments on commit e7fc7a3

Please sign in to comment.