angelakuo/citydogshare

View on GitHub
public/assets/jquery-ui/droppable-f66e0a58fd8ebf12f2fa5da8f817f481691dda9d2dfd586a4f71271f5eb4bad7.js

Summary

Maintainability
F
1 wk
Test Coverage

File droppable-f66e0a58fd8ebf12f2fa5da8f817f481691dda9d2dfd586a4f71271f5eb4bad7.js has 1929 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 drag has 76 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        drag: function( event, ui, draggable ) {
            $.each( draggable.sortables, function() {
                var innermostIntersecting = false,
                    sortable = this;
    
    

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

            _generatePosition: function( event, constrainPosition ) {
        
                var containment, co, top, left,
                    o = this.options,
                    scrollIsRootNode = this._isRootNode( this.scrollParent[ 0 ] ),

          Function drag has 59 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              drag: function( event, ui, inst ) {
          
                  var ts, bs, ls, rs, l, r, t, b, i, first,
                      o = inst.options,
                      d = o.snapTolerance,

            Function _setContainment has 56 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _setContainment: function() {
            
                    var isUserScrollable, c, ce,
                        o = this.options,
                        document = this.document[ 0 ];

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

                      _mouseDown: function(event) {
                          // don't let more than one widget handle mouseStart
                          if ( mouseHandled ) {
                              return;
                          }

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

                    $.ui.intersect = (function() {
                        function isOverAxis( x, reference, size ) {
                            return ( x >= reference ) && ( x < ( reference + size ) );
                        }
                    
                    

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

                            drag: function( event, ui, i  ) {
                        
                                var o = i.options,
                                    scrolled = false,
                                    scrollParent = i.scrollParentNotHidden[ 0 ],

                          Function drag has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              drag: function( draggable, event ) {
                          
                                  // If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
                                  if ( draggable.options.refreshPositions ) {
                                      $.ui.ddmanager.prepareOffsets( draggable, event );

                            Function _mouseStart has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                _mouseStart: function(event) {
                            
                                    var o = this.options;
                            
                                    //Create and append the visible helper

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

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

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

                                    _drop: function( event, custom ) {
                                
                                        var draggable = custom || $.ui.ddmanager.current,
                                            childrenIntersection = false;
                                
                                

                                  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;

                                    Consider simplifying this complex logical expression.
                                    Open

                                                if (!inst.snapElements[i].snapping && (ts || bs || ls || rs || first)) {
                                                    (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));
                                                }

                                      Consider simplifying this complex logical expression.
                                      Open

                                              if ((this.options.revert === "invalid" && !dropped) || (this.options.revert === "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {
                                                  $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {
                                                      if (that._trigger("stop", event) !== false) {
                                                          that._clear();
                                                      }

                                        Consider simplifying this complex logical expression.
                                        Open

                                                    if (
                                                        inst.options.greedy &&
                                                        !inst.options.disabled &&
                                                        inst.options.scope === draggable.options.scope &&
                                                        inst.accept.call( inst.element[ 0 ], ( draggable.currentItem || draggable.element ) ) &&

                                          Avoid too many return statements within this function.
                                          Open

                                                      return;

                                            There are no issues that match your filters.

                                            Category
                                            Status