frontend/js/thirdparty/modernizr.js
File modernizr.js
has 383 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* modernizr v3.5.0
* Build https://modernizr.com/download?-datachannel-getusermedia-peerconnection-websockets-domprefixes-setclasses-dontmin
*
* Copyright (c)
Function testProps
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function testProps(props, prefixed, value, skipValueTest) {
skipValueTest = is(skipValueTest, 'undefined') ? false : skipValueTest;
// Try native detect first
if (!is(value, 'undefined')) {
Function injectElementWithStyles
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function injectElementWithStyles(rule, callback, nodes, testnames) {
var mod = 'modernizr';
var style;
var ret;
var node;
Function testRunner
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function testRunner() {
var featureNames;
var feature;
var aliasIdx;
var result;
Avoid deeply nested control flow statements. Open
Open
for (aliasIdx = 0; aliasIdx < feature.options.aliases.length; aliasIdx++) {
featureNames.push(feature.options.aliases[aliasIdx].toLowerCase());
}
Avoid deeply nested control flow statements. Open
Open
if (Modernizr[featureNameSplit[0]] && !(Modernizr[featureNameSplit[0]] instanceof Boolean)) {
Modernizr[featureNameSplit[0]] = new Boolean(Modernizr[featureNameSplit[0]]);
}
Function testPropsAll
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function testPropsAll(prop, prefixed, elem, value, skipValueTest) {
Avoid too many return
statements within this function. Open
Open
return false;