angelakuo/citydogshare

View on GitHub
public/assets/jquery-ui/menu-27f35df1319eda450eab4d76ca153e8dd5044499489b55894750ba0d35609c7c.js

Summary

Maintainability
F
1 wk
Test Coverage

File menu-27f35df1319eda450eab4d76ca153e8dd5044499489b55894750ba0d35609c7c.js has 1599 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 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 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 option has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

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