pjambet/beech-server

View on GitHub
doc/apidoc/javascripts/bundled/jquery-1.7.2.js

Summary

Maintainability
F
1 mo
Test Coverage

File jquery-1.7.2.js has 6474 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v1.7.2
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
Severity: Major
Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 2 wks to fix

    Function jQuery has 614 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var jQuery = (function() {
    
    // Define a local copy of jQuery
    var jQuery = function( selector, context ) {
            // The jQuery object is actually just the init constructor 'enhanced'
    Severity: Major
    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 3 days to fix

      Function ajax has 242 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          ajax: function( url, options ) {
      
              // If url is an object, simulate pre-1.5 signature
              if ( typeof url === "object" ) {
                  options = url;
      Severity: Major
      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 day to fix

        Function support has 172 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        jQuery.support = (function() {
        
            var support,
                all,
                a,
        Severity: Major
        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 6 hrs to fix

          Function Callbacks has 150 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          jQuery.Callbacks = function( flags ) {
          
              // Convert flags from String-formatted to Object-formatted
              // (we check in cache first)
              flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};
          Severity: Major
          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 6 hrs to fix

            Consider simplifying this complex logical expression.
            Open

                        if ( event.pageX == null && original.clientX != null ) {
                            eventDoc = event.target.ownerDocument || document;
                            doc = eventDoc.documentElement;
                            body = eventDoc.body;
            
            
            Severity: Critical
            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 5 hrs to fix

              Function Sizzle has 108 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              var Sizzle = function( selector, context, results, seed ) {
                  results = results || [];
                  context = context || document;
              
                  var origContext = context;
              Severity: Major
              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 4 hrs to fix

                Function clean has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    clean: function( elems, context, fragment, scripts ) {
                        var checkScriptType, script, j,
                                ret = [];
                
                        context = context || document;
                Severity: Major
                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 3 hrs to fix

                  Function animate has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      animate: function( prop, speed, easing, callback ) {
                          var optall = jQuery.speed( speed, easing, callback );
                  
                          if ( jQuery.isEmptyObject( prop ) ) {
                              return this.each( optall.complete, [ false ] );
                  Severity: Major
                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 3 hrs to fix

                    Function trigger has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        trigger: function( event, data, elem, onlyHandlers ) {
                            // Don't do events on text and comment nodes
                            if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
                                return;
                            }
                    Severity: Major
                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 3 hrs to fix

                      Function send has 89 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                      send: function( headers, complete ) {
                      
                                          // Get a new xhr
                                          var xhr = s.xhr(),
                                              handle,
                      Severity: Major
                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 3 hrs to fix

                        Function doAnimation has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                function doAnimation() {
                                    // XXX 'this' does not always have a nodeName when running the
                                    // test suite
                        
                                    if ( optall.queue === false ) {
                        Severity: Major
                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 3 hrs to fix

                          Function Deferred has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              Deferred: function( func ) {
                                  var doneList = jQuery.Callbacks( "once memory" ),
                                      failList = jQuery.Callbacks( "once memory" ),
                                      progressList = jQuery.Callbacks( "memory" ),
                                      state = "pending",
                          Severity: Major
                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 3 hrs to fix

                            Consider simplifying this complex logical expression.
                            Open

                            if ( "getBoundingClientRect" in document.documentElement ) {
                                getOffset = function( elem, doc, docElem, box ) {
                                    try {
                                        box = elem.getBoundingClientRect();
                                    } catch(e) {}
                            Severity: Critical
                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 3 hrs to fix

                              Function add has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  add: function( elem, types, handler, data, selector ) {
                              
                                      var elemData, eventHandle, events,
                                          t, tns, type, namespaces, handleObj,
                                          handleObjIn, quick, handlers, special;
                              Severity: Major
                              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 2 hrs to fix

                                Function done has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        function done( status, nativeStatusText, responses, headers ) {
                                
                                            // Called once
                                            if ( state === 2 ) {
                                                return;
                                Severity: Major
                                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 2 hrs to fix

                                  Function filter has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  Sizzle.filter = function( expr, set, inplace, not ) {
                                      var match, anyFound,
                                          type, found, item, filter, left,
                                          i, pass,
                                          old = expr,
                                  Severity: Major
                                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 2 hrs to fix

                                    Function dispatch has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        dispatch: function( event ) {
                                    
                                            // Make a writable jQuery.Event from the native event object
                                            event = jQuery.event.fix( event || window.event );
                                    
                                    
                                    Severity: Major
                                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 2 hrs to fix

                                      Function init has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          init: function( selector, context, rootjQuery ) {
                                              var match, elem, ret, doc;
                                      
                                              // Handle $(""), $(null), or $(undefined)
                                              if ( !selector ) {
                                      Severity: Major
                                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 2 hrs to fix

                                        Function domManip has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            domManip: function( args, table, callback ) {
                                                var results, first, fragment, parent,
                                                    value = args[0],
                                                    scripts = [];
                                        
                                        
                                        Severity: Major
                                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 2 hrs to fix

                                          Function ajaxConvert has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                          function ajaxConvert( s, response ) {
                                          
                                              // Apply the dataFilter if provided
                                              if ( s.dataFilter ) {
                                                  response = s.dataFilter( response, s.dataType );
                                          Severity: Major
                                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 2 hrs to fix

                                            Function data has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                                data: function( elem, name, data, pvt /* Internal Use Only */ ) {
                                                    if ( !jQuery.acceptData( elem ) ) {
                                                        return;
                                                    }
                                            
                                            
                                            Severity: Major
                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 2 hrs to fix

                                              Function removeData has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                  removeData: function( elem, name, pvt /* Internal Use Only */ ) {
                                                      if ( !jQuery.acceptData( elem ) ) {
                                                          return;
                                                      }
                                              
                                              
                                              Severity: Major
                                              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 2 hrs to fix

                                                Function remove has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                    remove: function( elem, types, handler, selector, mappedTypes ) {
                                                
                                                        var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
                                                            t, tns, type, origType, namespaces, origCount,
                                                            j, events, special, handle, eventType, handleObj;
                                                Severity: Major
                                                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 2 hrs to fix

                                                  Consider simplifying this complex logical expression.
                                                  Open

                                                      if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&
                                                          first.charAt(0) === "<" && !rnocache.test( first ) &&
                                                          (jQuery.support.checkClone || !rchecked.test( first )) &&
                                                          (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {
                                                  
                                                  
                                                  Severity: Critical
                                                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 2 hrs to fix

                                                    Function step has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                        step: function( gotoEnd ) {
                                                            var p, n, complete,
                                                                t = fxNow || createFxNow(),
                                                                done = true,
                                                                elem = this.elem,
                                                    Severity: Minor
                                                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 2 hrs to fix

                                                      Consider simplifying this complex logical expression.
                                                      Open

                                                                      if ( ( mappedTypes || origType === handleObj.origType ) &&
                                                                           ( !handler || handler.guid === handleObj.guid ) &&
                                                                           ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
                                                                           ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
                                                                          eventType.splice( j--, 1 );
                                                      Severity: Critical
                                                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 2 hrs to fix

                                                        Function data has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                            data: function( key, value ) {
                                                                var parts, part, attr, name, l,
                                                                    elem = this[0],
                                                                    i = 0,
                                                                    data = null;
                                                        Severity: Minor
                                                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                          Function CHILD has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                                  CHILD: function( elem, match ) {
                                                                      var first, last,
                                                                          doneName, parent, cache,
                                                                          count, diff,
                                                                          type = match[1],
                                                          Severity: Minor
                                                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                            Function ajaxHandleResponses has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                                            Open

                                                            function ajaxHandleResponses( s, jqXHR, responses ) {
                                                            
                                                                var contents = s.contents,
                                                                    dataTypes = s.dataTypes,
                                                                    responseFields = s.responseFields,
                                                            Severity: Minor
                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                              Function stop has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                                              Open

                                                                  stop: function( type, clearQueue, gotoEnd ) {
                                                                      if ( typeof type !== "string" ) {
                                                                          gotoEnd = clearQueue;
                                                                          clearQueue = type;
                                                                          type = undefined;
                                                              Severity: Minor
                                                              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                Function load has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                    load: function( url, params, callback ) {
                                                                        if ( typeof url !== "string" && _load ) {
                                                                            return _load.apply( this, arguments );
                                                                
                                                                        // Don't do a request if no elements are being requested
                                                                Severity: Minor
                                                                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                  Function on has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                  Open

                                                                      on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                                                                          var origFn, type;
                                                                  
                                                                          // Types can be a map of types/handlers
                                                                          if ( typeof types === "object" ) {
                                                                  Severity: Minor
                                                                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                    Function val has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                    Open

                                                                        val: function( value ) {
                                                                            var hooks, ret, isFunction,
                                                                                elem = this[0];
                                                                    
                                                                            if ( !arguments.length ) {
                                                                    Severity: Minor
                                                                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                      Function extend has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                      Open

                                                                      jQuery.extend = jQuery.fn.extend = function() {
                                                                          var options, name, src, copy, copyIsArray, clone,
                                                                              target = arguments[0] || {},
                                                                              i = 1,
                                                                              length = arguments.length,
                                                                      Severity: Minor
                                                                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                        Function when has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                        Open

                                                                            when: function( firstParam ) {
                                                                                var args = sliceDeferred.call( arguments, 0 ),
                                                                                    i = 0,
                                                                                    length = args.length,
                                                                                    pValues = new Array( length ),
                                                                        Severity: Minor
                                                                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                          Function getWidthOrHeight has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                          function getWidthOrHeight( elem, name, extra ) {
                                                                          
                                                                              // Start with offset property
                                                                              var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
                                                                                  i = name === "width" ? 1 : 0,
                                                                          Severity: Minor
                                                                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                            Function attr has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            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
                                                                            Severity: Minor
                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                              Function access has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                              Open

                                                                                  access: function( elems, fn, key, value, chainable, emptyGet, pass ) {
                                                                                      var exec,
                                                                                          bulk = key == null,
                                                                                          i = 0,
                                                                                          length = elems.length;
                                                                              Severity: Minor
                                                                              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                Consider simplifying this complex logical expression.
                                                                                Open

                                                                                            if ( match[1] === "nth" ) {
                                                                                                if ( !match[2] ) {
                                                                                                    Sizzle.error( match[0] );
                                                                                                }
                                                                                
                                                                                
                                                                                Severity: Critical
                                                                                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                  Function each has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                  Open

                                                                                      each: function( object, callback, args ) {
                                                                                          var name, i = 0,
                                                                                              length = object.length,
                                                                                              isObj = length === undefined || jQuery.isFunction( object );
                                                                                  
                                                                                  
                                                                                  Severity: Minor
                                                                                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                    Function closest has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                    Open

                                                                                        closest: function( selectors, context ) {
                                                                                            var ret = [], i, l, cur = this[0];
                                                                                    
                                                                                            // Array (deprecated as of jQuery 1.7)
                                                                                            if ( jQuery.isArray( selectors ) ) {
                                                                                    Severity: Minor
                                                                                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                      Function setOffset has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                      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" ) {
                                                                                      Severity: Minor
                                                                                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                        Function ATTR has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                        Open

                                                                                                ATTR: function( elem, match ) {
                                                                                                    var name = match[1],
                                                                                                        result = Sizzle.attr ?
                                                                                                            Sizzle.attr( elem, name ) :
                                                                                                            Expr.attrHandle[ name ] ?
                                                                                        Severity: Minor
                                                                                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                          Function cleanData has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                          Open

                                                                                              cleanData: function( elems ) {
                                                                                                  var data, id,
                                                                                                      cache = jQuery.cache,
                                                                                                      special = jQuery.event.special,
                                                                                                      deleteExpando = jQuery.support.deleteExpando;
                                                                                          Severity: Minor
                                                                                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                            Function dirCheck has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                            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 ) {
                                                                                            Severity: Minor
                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                              Function cloneFixAttributes has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                              Open

                                                                                              function cloneFixAttributes( src, dest ) {
                                                                                                  var nodeName;
                                                                                              
                                                                                                  // We do not need to do anything for non-Elements
                                                                                                  if ( dest.nodeType !== 1 ) {
                                                                                              Severity: Minor
                                                                                              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                                Function promise has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                Open

                                                                                                    promise: function( type, object ) {
                                                                                                        if ( typeof type !== "string" ) {
                                                                                                            object = type;
                                                                                                            type = undefined;
                                                                                                        }
                                                                                                Severity: Minor
                                                                                                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                                  Function style has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                  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;
                                                                                                          }
                                                                                                  Severity: Minor
                                                                                                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                                    Function clone has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                    Open

                                                                                                        clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                                                                                                            var srcElements,
                                                                                                                destElements,
                                                                                                                i,
                                                                                                                // IE<=8 does not properly clone detached, unknown element nodes
                                                                                                    Severity: Minor
                                                                                                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                                      Function html has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                      Open

                                                                                                          html: function( value ) {
                                                                                                              return jQuery.access( this, function( value ) {
                                                                                                                  var elem = this[0] || {},
                                                                                                                      i = 0,
                                                                                                                      l = this.length;
                                                                                                      Severity: Minor
                                                                                                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                                        Function find has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                        Open

                                                                                                            find: function( selector ) {
                                                                                                                var self = this,
                                                                                                                    i, l;
                                                                                                        
                                                                                                                if ( typeof selector !== "string" ) {
                                                                                                        Severity: Minor
                                                                                                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                                          Function show has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                          Open

                                                                                                              show: function( speed, easing, callback ) {
                                                                                                                  var elem, display;
                                                                                                          
                                                                                                                  if ( speed || speed === 0 ) {
                                                                                                                      return this.animate( genFx("show", 3), speed, easing, callback );
                                                                                                          Severity: Minor
                                                                                                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                                            Function addClass has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                            Open

                                                                                                                addClass: function( value ) {
                                                                                                                    var classNames, i, l, elem,
                                                                                                                        setClass, c, cl;
                                                                                                            
                                                                                                                    if ( jQuery.isFunction( value ) ) {
                                                                                                            Severity: Minor
                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                                              Function setup has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                              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.
                                                                                                              Severity: Minor
                                                                                                              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                                                Function fire has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                Open

                                                                                                                        fire = function( context, args ) {
                                                                                                                            args = args || [];
                                                                                                                            memory = !flags.memory || [ context, args ];
                                                                                                                            fired = true;
                                                                                                                            firing = true;
                                                                                                                Severity: Minor
                                                                                                                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                                                  Function > has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                  Open

                                                                                                                          ">": function( checkSet, part ) {
                                                                                                                              var elem,
                                                                                                                                  isPartStr = typeof part === "string",
                                                                                                                                  i = 0,
                                                                                                                                  l = checkSet.length;
                                                                                                                  Severity: Minor
                                                                                                                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                                                    Function buildFragment has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                    Open

                                                                                                                    jQuery.buildFragment = function( args, nodes, scripts ) {
                                                                                                                        var fragment, cacheable, cacheresults, doc,
                                                                                                                        first = args[ 0 ];
                                                                                                                    
                                                                                                                        // nodes may contain either an explicit document object,
                                                                                                                    Severity: Minor
                                                                                                                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                                                      Consider simplifying this complex logical expression.
                                                                                                                      Open

                                                                                                                                      if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {
                                                                                                                      
                                                                                                                                          event.data = handleObj.data;
                                                                                                                                          event.handleObj = handleObj;
                                                                                                                      
                                                                                                                      
                                                                                                                      Severity: Major
                                                                                                                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                        Open

                                                                                                                        if ( jQuery.expr && jQuery.expr.filters ) {
                                                                                                                            jQuery.expr.filters.hidden = function( elem ) {
                                                                                                                                var width = elem.offsetWidth,
                                                                                                                                    height = elem.offsetHeight;
                                                                                                                        
                                                                                                                        
                                                                                                                        Severity: Major
                                                                                                                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                                                          Consider simplifying this complex logical expression.
                                                                                                                          Open

                                                                                                                                      if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
                                                                                                                                          ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
                                                                                                                                          !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {
                                                                                                                          
                                                                                                                                          value = value.replace( rxhtmlTag, "<$1></$2>" );
                                                                                                                          Severity: Major
                                                                                                                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                                                            Consider simplifying this complex logical expression.
                                                                                                                            Open

                                                                                                                                    if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) {
                                                                                                                                        return;
                                                                                                                                    }
                                                                                                                            Severity: Major
                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 1 hr to fix

                                                                                                                              Function access has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                              Open

                                                                                                                                  access: function( elems, fn, key, value, chainable, emptyGet, pass ) {
                                                                                                                              Severity: Major
                                                                                                                              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 50 mins to fix

                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                Open

                                                                                                                                                        if ( elem && elem.parentNode ) {
                                                                                                                                                            // Handle the case where IE and Opera return items
                                                                                                                                                            // by name instead of ID
                                                                                                                                                            if ( elem.id === match[3] ) {
                                                                                                                                                                return makeArray( [ elem ], extra );
                                                                                                                                Severity: Major
                                                                                                                                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                  Open

                                                                                                                                                          if ( !relativeHierarchySelector || hasParent ) {
                                                                                                                                                              return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
                                                                                                                                                          }
                                                                                                                                  Severity: Major
                                                                                                                                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                    Open

                                                                                                                                                                        if ( xml && xml.documentElement /* #4958 */ ) {
                                                                                                                                                                            responses.xml = xml;
                                                                                                                                                                        }
                                                                                                                                    Severity: Major
                                                                                                                                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                      Open

                                                                                                                                                              for ( c = 0, cl = classNames.length; c < cl; c++ ) {
                                                                                                                                                                  className = className.replace(" " + classNames[ c ] + " ", " ");
                                                                                                                                                              }
                                                                                                                                      Severity: Major
                                                                                                                                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                        Function CLASS has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                        Open

                                                                                                                                                CLASS: function( match, curLoop, inplace, result, not, isXML ) {
                                                                                                                                        Severity: Minor
                                                                                                                                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                          Open

                                                                                                                                                                          if ( firing ) {
                                                                                                                                                                              if ( i <= firingLength ) {
                                                                                                                                                                                  firingLength--;
                                                                                                                                                                                  if ( i <= firingIndex ) {
                                                                                                                                                                                      firingIndex--;
                                                                                                                                          Severity: Major
                                                                                                                                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                            Open

                                                                                                                                                                if ( !old ) {
                                                                                                                                                                    context.setAttribute( "id", nid );
                                                                                                                                                                } else {
                                                                                                                                                                    nid = nid.replace( /'/g, "\\$&" );
                                                                                                                                                                }
                                                                                                                                            Severity: Major
                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                              Function dirCheck has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                              Open

                                                                                                                                              function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
                                                                                                                                              Severity: Minor
                                                                                                                                              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                Open

                                                                                                                                                                    if ( copyIsArray ) {
                                                                                                                                                                        copyIsArray = false;
                                                                                                                                                                        clone = src && jQuery.isArray(src) ? src : [];
                                                                                                                                                
                                                                                                                                                                    } else {
                                                                                                                                                Severity: Major
                                                                                                                                                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                  Open

                                                                                                                                                                      for ( i = 0; (item = curLoop[i]) != null; i++ ) {
                                                                                                                                                                          if ( item ) {
                                                                                                                                                                              found = filter( item, match, i, curLoop );
                                                                                                                                                                              pass = not ^ found;
                                                                                                                                                  
                                                                                                                                                  
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                    Open

                                                                                                                                                                            if ( special[ type ] ) {
                                                                                                                                                                                jQuery.event.remove( elem, type );
                                                                                                                                                    
                                                                                                                                                                            // This is a shortcut to avoid jQuery.event.remove's overhead
                                                                                                                                                                            } else {
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                      Open

                                                                                                                                                                                  if ( !xhrCallbacks ) {
                                                                                                                                                                                      xhrCallbacks = {};
                                                                                                                                                                                      jQuery( window ).unload( xhrOnUnloadAbort );
                                                                                                                                                                                  }
                                                                                                                                                      Severity: Major
                                                                                                                                                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                        Open

                                                                                                                                                                                if ( selMatch[ sel ] === undefined ) {
                                                                                                                                                                                    selMatch[ sel ] = (
                                                                                                                                                                                        handleObj.quick ? quickIs( cur, handleObj.quick ) : jqcur.is( sel )
                                                                                                                                                                                    );
                                                                                                                                                                                }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                          Open

                                                                                                                                                                                  if ( !old ) {
                                                                                                                                                                                      oldContext.removeAttribute( "id" );
                                                                                                                                                                                  }
                                                                                                                                                          Severity: Major
                                                                                                                                                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                            Open

                                                                                                                                                                                if ( typeof cur !== "string" ) {
                                                                                                                                                                                    if ( elem === cur ) {
                                                                                                                                                                                        match = true;
                                                                                                                                                                                        break;
                                                                                                                                                                                    }
                                                                                                                                                            Severity: Major
                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                              Open

                                                                                                                                                                                      if ( elem.id !== match[2] ) {
                                                                                                                                                                                          return rootjQuery.find( selector );
                                                                                                                                                                                      }
                                                                                                                                                              Severity: Major
                                                                                                                                                              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                Open

                                                                                                                                                                                        for ( j = tbody.length - 1; j >= 0 ; --j ) {
                                                                                                                                                                                            if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
                                                                                                                                                                                                tbody[ j ].parentNode.removeChild( tbody[ j ] );
                                                                                                                                                                                            }
                                                                                                                                                                                        }
                                                                                                                                                                Severity: Major
                                                                                                                                                                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                  Open

                                                                                                                                                                                  } else if ( copy !== undefined ) {
                                                                                                                                                                                      target[ name ] = copy;
                                                                                                                                                                                  }
                                                                                                                                                                  Severity: Major
                                                                                                                                                                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                    Open

                                                                                                                                                                                            for ( c = 0, cl = classNames.length; c < cl; c++ ) {
                                                                                                                                                                                                if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
                                                                                                                                                                                                    setClass += classNames[ c ] + " ";
                                                                                                                                                                                                }
                                                                                                                                                                                            }
                                                                                                                                                                    Severity: Major
                                                                                                                                                                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                      Open

                                                                                                                                                                                          if ( !isXML ) {
                                                                                                                                                                                              elem[ expando ] = doneName;
                                                                                                                                                                                              elem.sizset = i;
                                                                                                                                                                                          }
                                                                                                                                                                      Severity: Major
                                                                                                                                                                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                        Open

                                                                                                                                                                                                            if ( !status && s.isLocal && !s.crossDomain ) {
                                                                                                                                                                                                                status = responses.text ? 200 : 404;
                                                                                                                                                                                                            // IE - #1450: sometimes returns 1223 when it should be 204
                                                                                                                                                                                                            } else if ( status === 1223 ) {
                                                                                                                                                                                                                status = 204;
                                                                                                                                                                        Severity: Major
                                                                                                                                                                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                          Open

                                                                                                                                                                                                  if ( selMatch[ sel ] ) {
                                                                                                                                                                                                      matches.push( handleObj );
                                                                                                                                                                                                  }
                                                                                                                                                                          Severity: Major
                                                                                                                                                                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                            Open

                                                                                                                                                                                                if ( relativeHierarchySelector && hasParent ) {
                                                                                                                                                                                                    context = context.parentNode;
                                                                                                                                                                                                }
                                                                                                                                                                            Severity: Major
                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                              Function dirNodeCheck has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                              Open

                                                                                                                                                                              function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
                                                                                                                                                                              Severity: Minor
                                                                                                                                                                              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                Open

                                                                                                                                                                                                                if ( flags.unique ) {
                                                                                                                                                                                                                    break;
                                                                                                                                                                                                                }
                                                                                                                                                                                Severity: Major
                                                                                                                                                                                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                  Open

                                                                                                                                                                                                          if ( name.indexOf( "data-" ) === 0 ) {
                                                                                                                                                                                                              name = jQuery.camelCase( name.substring(5) );
                                                                                                                                                                                  
                                                                                                                                                                                                              dataAttr( elem, name, data[ name ] );
                                                                                                                                                                                                          }
                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                    Open

                                                                                                                                                                                                            if ( ret[r] === ret[n] ) {
                                                                                                                                                                                                                ret.splice(n--, 1);
                                                                                                                                                                                                                break;
                                                                                                                                                                                                            }
                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                      Open

                                                                                                                                                                                                              if ( name in thisCache ) {
                                                                                                                                                                                                                  name = [ name ];
                                                                                                                                                                                                              } else {
                                                                                                                                                                                                                  name = name.split( " " );
                                                                                                                                                                                                              }
                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                        Open

                                                                                                                                                                                                                if ( ret === false ) {
                                                                                                                                                                                                                    event.preventDefault();
                                                                                                                                                                                                                    event.stopPropagation();
                                                                                                                                                                                                                }
                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                          Open

                                                                                                                                                                                                                  if ( safeChildNodes.length > 0 ) {
                                                                                                                                                                                                                      remove = safeChildNodes[ safeChildNodes.length - 1 ];
                                                                                                                                                                                          
                                                                                                                                                                                                                      if ( remove && remove.parentNode ) {
                                                                                                                                                                                                                          remove.parentNode.removeChild( remove );
                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                            Open

                                                                                                                                                                                                                                if ( xhrOnUnloadAbort ) {
                                                                                                                                                                                                                                    delete xhrCallbacks[ handle ];
                                                                                                                                                                                                                                }
                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                                              Function inspectPrefiltersOrTransports has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                              Open

                                                                                                                                                                                              function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
                                                                                                                                                                                                      dataType /* internal */, inspected /* internal */ ) {
                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                Open

                                                                                                                                                                                                                    if ( !inplace ) {
                                                                                                                                                                                                                        curLoop = result;
                                                                                                                                                                                                                    }
                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                                  Open

                                                                                                                                                                                                                      if ( !anyFound ) {
                                                                                                                                                                                                                          return [];
                                                                                                                                                                                                                      }
                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                                        if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
                                                                                                                                                                                                                            conv2 = converters[ tmp[1] + " " + current ];
                                                                                                                                                                                                                            if ( conv2 ) {
                                                                                                                                                                                                                                conv1 = converters[ conv1 ];
                                                                                                                                                                                                                                if ( conv1 === true ) {
                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                          if ( xhr.readyState !== 4 ) {
                                                                                                                                                                                                                                              xhr.abort();
                                                                                                                                                                                                                                          }
                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                                                        Function ATTR has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                        Open

                                                                                                                                                                                                                ATTR: function( match, curLoop, inplace, result, not, isXML ) {
                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                  if ( jQuery.isPlainObject( context ) ) {
                                                                                                                                                                                                                                      selector = [ document.createElement( ret[1] ) ];
                                                                                                                                                                                                                                      jQuery.fn.attr.call( selector, context, true );
                                                                                                                                                                                                          
                                                                                                                                                                                                                                  } else {
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                if ( !match ) {
                                                                                                                                                                                                                                    anyFound = found = true;
                                                                                                                                                                                                            
                                                                                                                                                                                                                                } else if ( match === true ) {
                                                                                                                                                                                                                                    continue;
                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 45 mins to fix

                                                                                                                                                                                                              Consider simplifying this complex logical expression.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                              if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
                                                                                                                                                                                                              
                                                                                                                                                                                                                                  // Don't re-trigger an onFOO event when we call its FOO() method
                                                                                                                                                                                                                                  old = elem[ ontype ];
                                                                                                                                                                                                              
                                                                                                                                                                                                              
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 40 mins to fix

                                                                                                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                                                                                                Open

                                                                                                                                                                                                                        if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
                                                                                                                                                                                                                                Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
                                                                                                                                                                                                                
                                                                                                                                                                                                                            ret = Sizzle.find( parts.shift(), context, contextXML );
                                                                                                                                                                                                                            context = ret.expr ?
                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 40 mins to fix

                                                                                                                                                                                                                  Consider simplifying this complex logical expression.
                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                  if ( !jQuery.support.opacity ) {
                                                                                                                                                                                                                      jQuery.cssHooks.opacity = {
                                                                                                                                                                                                                          get: function( elem, computed ) {
                                                                                                                                                                                                                              // IE uses filters for opacity
                                                                                                                                                                                                                              return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 40 mins to fix

                                                                                                                                                                                                                    Consider simplifying this complex logical expression.
                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                            if ( s.crossDomain == null ) {
                                                                                                                                                                                                                                parts = rurl.exec( s.url.toLowerCase() );
                                                                                                                                                                                                                                s.crossDomain = !!( parts &&
                                                                                                                                                                                                                                    ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
                                                                                                                                                                                                                                        ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 40 mins to fix

                                                                                                                                                                                                                      Function add has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                          add: function( elem, types, handler, data, selector ) {
                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 35 mins to fix

                                                                                                                                                                                                                        Function PSEUDO has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                PSEUDO: function( match, curLoop, inplace, result, not ) {
                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 35 mins to fix

                                                                                                                                                                                                                          Function remove has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                              remove: function( elem, types, handler, selector, mappedTypes ) {
                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 35 mins to fix

                                                                                                                                                                                                                            Function on has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 35 mins to fix

                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                              return this.constructor( context ).find( selector );
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                        return event.result;
                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                          return diff === 0;
                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                    return ( context || rootjQuery ).find( selector );
                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                      return ret;
                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                    return;
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                      return rootjQuery.find( selector );
                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                            return value;
                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                          return ret;
                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                            return ret === null ?
                                                                                                                                                                                                                                                                undefined :
                                                                                                                                                                                                                                                                ret;
                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                          return jQuery.makeArray( selector, this );
                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                    return siblingCheck( ap[i], bp[i] );
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                  return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                        return elem[ name ];
                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                      return makeArray( [], extra );
                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                return this;
                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                          return 1;
                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                              Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                        return ( diff % first === 0 && diff / first >= 0 );
                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                          return true;
                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                  Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                            return i === al ?
                                                                                                                                                                                                                                                                                siblingCheck( a, bp[i], -1 ) :
                                                                                                                                                                                                                                                                                siblingCheck( ap[i], b, 1 );
                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                    Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                              return makeArray( context.querySelectorAll(query), extra );
                                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                                      Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                    return oldSizzle(query, context, extra, seed);
                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                        Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                      return rootjQuery.ready( selector );
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js - About 30 mins to fix

                                                                                                                                                                                                                                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                    "~": function( checkSet, part, isXML ) {
                                                                                                                                                                                                                                                                                        var nodeCheck,
                                                                                                                                                                                                                                                                                            doneName = done++,
                                                                                                                                                                                                                                                                                            checkFn = dirCheck;
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                            doc/apidoc/javascripts/bundled/jquery-1.7.2.js on lines 4399..4411

                                                                                                                                                                                                                                                                            Duplicated Code

                                                                                                                                                                                                                                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 97.

                                                                                                                                                                                                                                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

                                                                                                                                                                                                                                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                    "": function(checkSet, part, isXML){
                                                                                                                                                                                                                                                                                        var nodeCheck,
                                                                                                                                                                                                                                                                                            doneName = done++,
                                                                                                                                                                                                                                                                                            checkFn = dirCheck;
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                            doc/apidoc/javascripts/bundled/jquery-1.7.2.js on lines 4413..4425

                                                                                                                                                                                                                                                                            Duplicated Code

                                                                                                                                                                                                                                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 97.

                                                                                                                                                                                                                                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

                                                                                                                                                                                                                                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                            event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                            doc/apidoc/javascripts/bundled/jquery-1.7.2.js on lines 3385..3385

                                                                                                                                                                                                                                                                            Duplicated Code

                                                                                                                                                                                                                                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 71.

                                                                                                                                                                                                                                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

                                                                                                                                                                                                                                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                            event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                            doc/apidoc/javascripts/bundled/jquery-1.7.2.js on lines 3386..3386

                                                                                                                                                                                                                                                                            Duplicated Code

                                                                                                                                                                                                                                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 71.

                                                                                                                                                                                                                                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

                                                                                                                                                                                                                                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                    if ( jQuery.isFunction( value ) ) {
                                                                                                                                                                                                                                                                                        return this.each(function( j ) {
                                                                                                                                                                                                                                                                                            jQuery( this ).removeClass( value.call(this, j, this.className) );
                                                                                                                                                                                                                                                                                        });
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                            doc/apidoc/javascripts/bundled/jquery-1.7.2.js on lines 2255..2259

                                                                                                                                                                                                                                                                            Duplicated Code

                                                                                                                                                                                                                                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 61.

                                                                                                                                                                                                                                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

                                                                                                                                                                                                                                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                    if ( jQuery.isFunction( value ) ) {
                                                                                                                                                                                                                                                                                        return this.each(function( j ) {
                                                                                                                                                                                                                                                                                            jQuery( this ).addClass( value.call(this, j, this.className) );
                                                                                                                                                                                                                                                                                        });
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                            doc/apidoc/javascripts/bundled/jquery-1.7.2.js on lines 2291..2295

                                                                                                                                                                                                                                                                            Duplicated Code

                                                                                                                                                                                                                                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 61.

                                                                                                                                                                                                                                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

                                                                                                                                                                                                                                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                    reset: function( elem ) {
                                                                                                                                                                                                                                                                                        var name = elem.nodeName.toLowerCase();
                                                                                                                                                                                                                                                                                        return (name === "input" || name === "button") && "reset" === elem.type;
                                                                                                                                                                                                                                                                                    },
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                            doc/apidoc/javascripts/bundled/jquery-1.7.2.js on lines 4627..4630

                                                                                                                                                                                                                                                                            Duplicated Code

                                                                                                                                                                                                                                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 56.

                                                                                                                                                                                                                                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

                                                                                                                                                                                                                                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                    submit: function( elem ) {
                                                                                                                                                                                                                                                                                        var name = elem.nodeName.toLowerCase();
                                                                                                                                                                                                                                                                                        return (name === "input" || name === "button") && "submit" === elem.type;
                                                                                                                                                                                                                                                                                    },
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                            doc/apidoc/javascripts/bundled/jquery-1.7.2.js on lines 4636..4639

                                                                                                                                                                                                                                                                            Duplicated Code

                                                                                                                                                                                                                                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 56.

                                                                                                                                                                                                                                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

                                                                                                                                                                                                                                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                    if ( jQuery.isFunction( html ) ) {
                                                                                                                                                                                                                                                                                        return this.each(function(i) {
                                                                                                                                                                                                                                                                                            jQuery(this).wrapAll( html.call(this, i) );
                                                                                                                                                                                                                                                                                        });
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                            doc/apidoc/javascripts/bundled/jquery-1.7.2.js on lines 5809..5813

                                                                                                                                                                                                                                                                            Duplicated Code

                                                                                                                                                                                                                                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 56.

                                                                                                                                                                                                                                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

                                                                                                                                                                                                                                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                    if ( jQuery.isFunction( html ) ) {
                                                                                                                                                                                                                                                                                        return this.each(function(i) {
                                                                                                                                                                                                                                                                                            jQuery(this).wrapInner( html.call(this, i) );
                                                                                                                                                                                                                                                                                        });
                                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                            doc/apidoc/javascripts/bundled/jquery-1.7.2.js on lines 5780..5784

                                                                                                                                                                                                                                                                            Duplicated Code

                                                                                                                                                                                                                                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 56.

                                                                                                                                                                                                                                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

                                                                                                                                                                                                                                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                        for ( key in elems ) {
                                                                                                                                                                                                                                                                                            value = callback( elems[ key ], key, arg );
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                            if ( value != null ) {
                                                                                                                                                                                                                                                                                                ret[ ret.length ] = value;
                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                            doc/apidoc/javascripts/bundled/jquery-1.7.2.js on lines 772..778

                                                                                                                                                                                                                                                                            Duplicated Code

                                                                                                                                                                                                                                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 47.

                                                                                                                                                                                                                                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

                                                                                                                                                                                                                                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                        for ( ; i < length; i++ ) {
                                                                                                                                                                                                                                                                                            value = callback( elems[ i ], i, arg );
                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                            if ( value != null ) {
                                                                                                                                                                                                                                                                                                ret[ ret.length ] = value;
                                                                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                                                                            Found in doc/apidoc/javascripts/bundled/jquery-1.7.2.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                            doc/apidoc/javascripts/bundled/jquery-1.7.2.js on lines 782..788

                                                                                                                                                                                                                                                                            Duplicated Code

                                                                                                                                                                                                                                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                            Tuning

                                                                                                                                                                                                                                                                            This issue has a mass of 47.

                                                                                                                                                                                                                                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                                                                                                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                                                                                                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                                                                                                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                                                                                                                                            Refactorings

                                                                                                                                                                                                                                                                            Further Reading

                                                                                                                                                                                                                                                                            There are no issues that match your filters.

                                                                                                                                                                                                                                                                            Category
                                                                                                                                                                                                                                                                            Status