Skip to content

Commit

Permalink
Use hash in selector. Reduce amount of objects selected
Browse files Browse the repository at this point in the history
  • Loading branch information
wilson1000 committed Sep 25, 2023
1 parent b1ca604 commit 6f5fdbc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ export default (function ($) {
});

// track link clicks in panels
tabbed.panels.find("a")
tabbed.panels
.find('a[href*=\\#]')
.on("click", function () {
let url = $(this).attr("href");

Expand Down

0 comments on commit 6f5fdbc

Please sign in to comment.