Skip to content

Commit

Permalink
chore: Remove one extra jQuery statement
Browse files Browse the repository at this point in the history
  • Loading branch information
dimodi committed Jul 13, 2020
1 parent dfcc6be commit 12279ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _assets/js/toc-base.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
function animateScrolling(hash) {
var isApiSection = $("article.api-reference").length == 1;
var hasBreadCrumbs = $("p.breadcrumbs").length == 1 && $("p.breadcrumbs").text().trim() != "";
var breadCrumbsElement = $("p.breadcrumbs");
var hasBreadCrumbs = breadCrumbsElement.length == 1 && breadCrumbsElement.text().trim() != "";
var currentScrollTop = $(window).scrollTop();
var offset = $(hash).offset() || { top: currentScrollTop };

Expand Down

0 comments on commit 12279ac

Please sign in to comment.