app/assets/javascripts/knowledge_base_public_polyfills/svgstore.js
Function svg4everybody
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function svg4everybody(rawopts) {
function oninterval() {
// while the index exists in the live <use> collection
for (// get the cached <use> index
var index = 0; index < uses.length; ) {
Function oninterval
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function oninterval() {
// while the index exists in the live <use> collection
for (// get the cached <use> index
var index = 0; index < uses.length; ) {
// get the current <use>
Avoid deeply nested control flow statements. Open
Open
if (url.length) {
// get the cached xhr request
var xhr = requests[url];
// ensure the xhr request exists
xhr || (xhr = requests[url] = new XMLHttpRequest(), xhr.open("GET", url), xhr.send(),