Skip to content

Commit 8a1ccdd

Browse files
committed
Remove customization of 'anchors'
The AnchorsJS module has been killed recently in #22311 prematurely. Now we don't have a global variable 'anchors' to customize. This PR removes the related code in script.js in hope everything else is still working correctly.
1 parent 1943aaa commit 8a1ccdd

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

static/js/script.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
function addAnchorTags() {
2-
anchors.options = {
3-
visible: 'touch'
4-
}
5-
6-
anchors.add('#docsContent h2, #docsContent h3, #docsContent h4, #docsContent h5, #docsContent h6');
7-
}
8-
91
//modal close button
102
(function(){
113
//π.modalCloseButton = function(closingFunction){
@@ -517,9 +509,6 @@ var pushmenu = (function(){
517509
})();
518510

519511
$(function() {
520-
addAnchorTags();
521-
522-
523512
// If vendor strip doesn't exist add className
524513
if ( !$('#vendorStrip').length > 0 ) {
525514
$('.header-hero').addClass('bot-bar');

0 commit comments

Comments
 (0)