angelakuo/citydogshare

View on GitHub
public/assets/jquery-ui/selectmenu-1b2a9d17da8b1a257c9339928b198bd2f755dc9234332f0fbd79811a66a9d48b.js

Summary

Maintainability
F
1 wk
Test Coverage

File selectmenu-1b2a9d17da8b1a257c9339928b198bd2f755dc9234332f0fbd79811a66a9d48b.js has 2064 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 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 54 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    keydown: function( event ) {
                        var preventDefault = true;
                        switch ( event.keyCode ) {
                            case $.ui.keyCode.TAB:
                            case $.ui.keyCode.ESCAPE:

              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 _drawMenu has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _drawMenu: function() {
                          var that = this;
                  
                          // Create menu
                          this.menu = $( "<ul>", {

                    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 _drawButton has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            _drawButton: function() {
                                var that = this;
                        
                                // Associate existing label with the new button
                                this.label = $( "label[for='" + this.ids.element + "']" ).attr( "for", this.ids.button );

                          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 _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 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,

                                      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,

                                          There are no issues that match your filters.

                                          Category
                                          Status