Showing 552 of 784 total issues
Function style
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
style: function( elem, name, value, extra ) {
// Don't set styles on text and comment nodes
if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
return;
}
Function validateNumeric
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var validateNumeric = function ( fields ) {
var allIsWell = true;
for (var i = 0, j = fields.length; i < j; i++) {
var el = fields[i],
Function setOffset
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setOffset: function( elem, options, i ) {
var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
position = jQuery.css( elem, "position" ),
curElem = jQuery( elem ),
props = {};
Function cleanData
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cleanData: function( elems, /* internal */ acceptData ) {
var elem, type, id, data,
i = 0,
internalKey = jQuery.expando,
cache = jQuery.cache,
Function webforms
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function webforms() {
Modernizr['input'] = (function( props ) {
for ( var i = 0, len = props.length; i < len; i++ ) {
attrs[ props[i] ] = !!(props[i] in inputElem);
}
Function validateNumeric
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var validateNumeric = function ( fields ) {
var allIsWell = true;
for (var i = 0, j = fields.length; i < j; i++) {
var el = fields[i],
Consider simplifying this complex logical expression. Open
Open
if (T && (Q === "DOMNodeInserted" || (Q === "DOMSubtreeModified" && T !== P) || (Q === "DOMAttrModified" && (O === "src" || O === "href"))) && !M[T]) {
M[T] = 1;
B.push(R)
}
Consider simplifying this complex logical expression. Open
Open
if ( start && start[ 3 ] !== unit ) {
// Trust units reported by jQuery.css
unit = unit || start[ 3 ];
// Make sure we update the tween properties later on
Consider simplifying this complex logical expression. Open
Open
} else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
diff = cache[1];
// xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
} else {
Consider simplifying this complex logical expression. Open
Open
if ( start && start[ 3 ] !== unit ) {
// Trust units reported by jQuery.css
unit = unit || start[ 3 ];
// Make sure we update the tween properties later on
Consider simplifying this complex logical expression. Open
Open
} else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
diff = cache[1];
// xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
} else {
Function Component
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
YSLOW.Component = function(r, s, u, v) {
var t = v && v.obj,
q = (v && v.comp) || {};
this.url = r;
this.type = s;
Function lint
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
lint: function(A, C, r) {
var u, x, s, z, v, y = C.inline,
B = (y && y.styles) || [],
t = (y && y.scripts) || [],
q = C.getComponentsByType(r.types),
Method handle
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle(ProjectWatcher $event)
{
$urlsFromDatabase = $event->project->urls->pluck('url');
if (is_string($urlsFromDatabase)) {
$urlsFromDatabase = (array)$urlsFromDatabase;
Function updateToolbarSelection
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateToolbarSelection: function() {
var q, r, s;
switch (this.curButtonId) {
case "ysCompsButton":
case "ysPerfButton":
Function addCDN
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addCDN: function(z) {
var t, r, v = this,
x = document,
A = v.yscontext,
B = YSLOW.util.Preference,
Function fixCloneNodeIssues
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fixCloneNodeIssues( src, dest ) {
var nodeName, e, data;
// We do not need to do anything for non-Elements
if ( dest.nodeType !== 1 ) {
Function removeClass
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
removeClass: function( value ) {
var classes, elem, cur, clazz, j, finalValue,
i = 0,
len = this.length,
proceed = arguments.length === 0 || typeof value === "string" && value;
Function addClass
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addClass: function( value ) {
var classes, elem, cur, clazz, j, finalValue,
i = 0,
len = this.length,
proceed = typeof value === "string" && value;
Function data
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data: function( key, value ) {
var i, name, data,
elem = this[0],
attrs = elem && elem.attributes;