angelakuo/citydogshare

View on GitHub
public/assets/jquery-ui/draggable-d9477f5c83280aa97b21443afb2776a9cd0ea0b0b871156d73da69254d503a2b.js

Summary

Maintainability
F
1 wk
Test Coverage

File draggable-d9477f5c83280aa97b21443afb2776a9cd0ea0b0b871156d73da69254d503a2b.js has 1623 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 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 _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 _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 _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();
                                                }

                                  Avoid too many return statements within this function.
                                  Open

                                              return;

                                    There are no issues that match your filters.

                                    Category
                                    Status