angelakuo/citydogshare

View on GitHub
public/assets/jquery-ui/tabs-1555bc059264f3bb33e4557861ecb039782326de6f176fc63f4a3f09019caeb7.js

Summary

Maintainability
F
6 days
Test Coverage

File tabs-1555bc059264f3bb33e4557861ecb039782326de6f176fc63f4a3f09019caeb7.js has 1343 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 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 _processTabs has 71 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _processTabs: function() {
              var that = this,
                  prevTabs = this.tabs,
                  prevAnchors = this.anchors,
                  prevPanels = this.panels;

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

            _toggle: function( event, eventData ) {
                var that = this,
                    toShow = eventData.newPanel,
                    toHide = eventData.oldPanel;
        
        

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

                _destroy: function() {
                    if ( this.xhr ) {
                        this.xhr.abort();
                    }
            
            

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

                  _tabKeydown: function( event ) {
                      var focusedTab = $( this.document[0].activeElement ).closest( "li" ),
                          selectedIndex = this.tabs.index( focusedTab ),
                          goingForward = true;
              
              

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

                      load: function( index, event ) {
                          index = this._getIndex( index );
                          var that = this,
                              tab = this.tabs.eq( index ),
                              anchor = tab.find( ".ui-tabs-anchor" ),

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

                          _eventHandler: function( event ) {
                              var options = this.options,
                                  active = this.active,
                                  anchor = $( event.currentTarget ),
                                  tab = anchor.closest( "li" ),

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

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

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

                              _refresh: function() {
                                  this._setupDisabled( this.options.disabled );
                                  this._setupEvents( this.options.event );
                                  this._setupHeightStyle( this.options.heightStyle );
                          
                          

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

                                _initialActive: function() {
                                    var active = this.options.active,
                                        collapsible = this.options.collapsible,
                                        locationHash = location.hash.substring( 1 );
                            
                            

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

                                    _setupHeightStyle: function( heightStyle ) {
                                        var maxHeight,
                                            parent = this.element.parent();
                                
                                        if ( heightStyle === "fill" ) {

                                  Consider simplifying this complex logical expression.
                                  Open

                                          if ( tab.hasClass( "ui-state-disabled" ) ||
                                                  // tab is already loading
                                                  tab.hasClass( "ui-tabs-loading" ) ||
                                                  // can't switch durning an animation
                                                  this.running ||

                                    There are no issues that match your filters.

                                    Category
                                    Status