docs/assets/anchor.js
Function AnchorJS
has 202 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AnchorJS(options) {
this.options = options || {};
this.elements = [];
/**
Function add
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.add = function(selector) {
var elements,
elsWithIds,
idList,
elementID,
Function _addBaselineStyles
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _addBaselineStyles() {
// We don't want to add global baseline styles if they've been added before.
if (document.head.querySelector('style.anchorjs') !== null) {
return;
}