angelakuo/citydogshare

View on GitHub
public/assets/jquery-ui/autocomplete-166ec6afd7f8286aa215ad1dfa0fef7c823de7ba82723d4cb25f8f4394c59e8e.js

Summary

Maintainability
F
1 wk
Test Coverage

File autocomplete-166ec6afd7f8286aa215ad1dfa0fef7c823de7ba82723d4cb25f8f4394c59e8e.js has 2092 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery UI Core 1.11.4
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors

    Function _create has 203 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _create: function() {
            // Some browsers only repeat keydown events, not keypress events,
            // so we use the suppressKeyPress flag to determine if we've already
            // handled the keydown event. #7269
            // Unfortunately the code for & in keypress is the same as the up arrow,

      Function position has 147 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      $.fn.position = function( options ) {
          if ( !options || !options.of ) {
              return _position.apply( this, arguments );
          }
      
      

        Function widget has 73 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        $.widget = function( name, base, prototype ) {
            var fullName, existingConstructor, constructor, basePrototype,
                // proxiedPrototype allows the provided prototype to remain unmodified
                // so that it can be used as a mixin for multiple widgets (#8876)
                proxiedPrototype = {},

          Function _create has 70 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _create: function() {
                  this.activeMenu = this.element;
          
                  // Flag used to prevent firing of the click handler
                  // as the event bubbles up through nested menus

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

                _keydown: function( event ) {
                    var match, prev, character, skip,
                        preventDefault = true;
            
                    switch ( event.keyCode ) {

              Function keydown has 53 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                          keydown: function( event ) {
                              if ( this.element.prop( "readOnly" ) ) {
                                  suppressKeyPress = true;
                                  suppressInput = true;
                                  suppressKeyPressRepeat = true;

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

                $.widget.bridge = function( name, object ) {
                    var fullName = object.prototype.widgetFullName || name;
                    $.fn[ name ] = function( options ) {
                        var isMethodCall = typeof options === "string",
                            args = widget_slice.call( arguments, 1 ),

                  Function refresh has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      refresh: function() {
                          var menus, items,
                              that = this,
                              icon = this.options.icons.submenu,
                              submenus = this.element.find( this.options.menus );

                    Function name has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        $.fn[ name ] = function( options ) {
                            var isMethodCall = typeof options === "string",
                                args = widget_slice.call( arguments, 1 ),
                                returnValue = this;
                    
                    

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

                          _on: function( suppressDisabledCheck, element, handlers ) {
                              var delegateElement,
                                  instance = this;
                      
                              // no suppressDisabledCheck flag, shuffle arguments

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

                                top: function( position, data ) {
                                    var within = data.within,
                                        withinOffset = within.offset.top + within.scrollTop,
                                        outerHeight = within.height,
                                        offsetTop = within.isWindow ? within.scrollTop : within.offset.top,

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

                              option: function( key, value ) {
                                  var options = key,
                                      parts,
                                      curOption,
                                      i;

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

                                    left: function( position, data ) {
                                        var within = data.within,
                                            withinOffset = within.offset.left + within.scrollLeft,
                                            outerWidth = within.width,
                                            offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left,

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

                                  _createWidget: function( options, element ) {
                                      element = $( element || this.defaultElement || this )[ 0 ];
                                      this.element = $( element );
                                      this.uuid = widget_uuid++;
                                      this.eventNamespace = "." + this.widgetName + this.uuid;

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

                                    _initSource: function() {
                                        var array, url,
                                            that = this;
                                        if ( $.isArray( this.options.source ) ) {
                                            array = this.options.source;

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

                                      _destroy: function() {
                                          // Destroy (sub)menus
                                          this.element
                                              .removeAttr( "aria-activedescendant" )
                                              .find( ".ui-menu" ).addBack()

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

                                    function getDimensions( elem ) {
                                        var raw = elem[0];
                                        if ( raw.nodeType === 9 ) {
                                            return {
                                                width: elem.width(),

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

                                              left: function( position, data ) {
                                                  var within = data.within,
                                                      withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
                                                      outerWidth = within.width,
                                                      collisionPosLeft = position.left - data.collisionPosition.marginLeft,

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

                                                top: function( position, data ) {
                                                    var within = data.within,
                                                        withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
                                                        outerHeight = data.within.height,
                                                        collisionPosTop = position.top - data.collisionPosition.marginTop,

                                          There are no issues that match your filters.

                                          Category
                                          Status