Showing 170 of 256 total issues
Function attr
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
attr: function( elem, name, value, pass ) {
var ret, hooks, notxml,
nType = elem.nodeType;
// don't get/set attributes on text, comment and attribute nodes
Consider simplifying this complex logical expression. Open
Open
if ( match[1] === "nth" ) {
if ( !match[2] ) {
Sizzle.error( match[0] );
}
Consider simplifying this complex logical expression. Open
Open
;if(window.jQuery) (function($){
// Add function to jQuery namespace
$.extend({
Function closest
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
closest: function( selectors, context ) {
var ret = [], i, l, cur = this[0];
// Array (deprecated as of jQuery 1.7)
if ( jQuery.isArray( selectors ) ) {
Function each
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
each: function( object, callback, args ) {
var name, i = 0,
length = object.length,
isObj = length === undefined || jQuery.isFunction( object );
Function ATTR
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ATTR: function( elem, match ) {
var name = match[1],
result = Sizzle.attr ?
Sizzle.attr( elem, name ) :
Expr.attrHandle[ name ] ?
Function setOffset
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setOffset: function( elem, options, i ) {
var position = jQuery.css( elem, "position" );
// set position first, in-case top/left are set even on static elem
if ( position === "static" ) {
Function cleanData
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cleanData: function( elems ) {
var data, id,
cache = jQuery.cache,
special = jQuery.event.special,
deleteExpando = jQuery.support.deleteExpando;
Function slide
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, slide: function (type, next) {
var $active = this.$element.find('.active')
, $next = next || $active[type]()
, isCycling = this.interval
, direction = type == 'next' ? 'left' : 'right'
Function dirCheck
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
for ( var i = 0, l = checkSet.length; i < l; i++ ) {
var elem = checkSet[i];
if ( elem ) {
Function style
has 29 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 offset
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.fn.offset = function( options ) {
var elem = this[0], box;
if ( options ) {
return this.each(function( i ) {
Function clone
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clone: function( elem, dataAndEvents, deepDataAndEvents ) {
var srcElements,
destElements,
i,
// IE<=8 does not properly clone detached, unknown element nodes
Function promise
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
promise: function( type, object ) {
if ( typeof type !== "string" ) {
object = type;
type = undefined;
}
Function validatePosition
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function validatePosition() {
var data = this.data('panZoom');
// if dimensions are too small...
if ( data.position.x2 - data.position.x1 < settings.min_width/settings.factor || data.position.y2 - data.position.y1 < settings.min_height/settings.factor ) {
// and second co-ords are zero (IE: no dims set), fit image
Function find
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
find: function( selector ) {
var self = this,
i, l;
if ( typeof selector !== "string" ) {
Function type
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.fn[ type ] = function( size ) {
// Get window width or height
var elem = this[0];
if ( !elem ) {
return size == null ? null : this;
Function addClass
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addClass: function( value ) {
var classNames, i, l, elem,
setClass, c, cl;
if ( jQuery.isFunction( value ) ) {
Function setup
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setup: function() {
if ( rformElems.test( this.nodeName ) ) {
// IE doesn't fire change on a check/radio until blur; trigger it on click
// after a propertychange. Eat the blur-change in special.change.handle.
Function html
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
html: function( value ) {
if ( value === undefined ) {
return this[0] && this[0].nodeType === 1 ?
this[0].innerHTML.replace(rinlinejQuery, "") :
null;