angelakuo/citydogshare

View on GitHub
public/assets/jquery-ui/dialog-9d863f002ba828f33288e3db92e52f4c47636d4ed0bd957fac4f525d1dc8e914.js

Summary

Maintainability
F
3 wks
Test Coverage

File dialog-9d863f002ba828f33288e3db92e52f4c47636d4ed0bd957fac4f525d1dc8e914.js has 3999 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 _create has 134 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _create: function() {
      
              var n, i, handle, axis, hname,
                  that = this,
                  o = this.options;

        Function _create has 115 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _create: function() {
                this.element.closest( "form" )
                    .unbind( "reset" + this.eventNamespace )
                    .bind( "reset" + this.eventNamespace, formResetHandler );
        
        

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

                resize: function( event ) {
                    var woset, hoset, isParent, isOffsetRelative,
                        that = $( this ).resizable( "instance" ),
                        o = that.options,
                        co = that.containerOffset,

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

                      resize: function() {
                          var outerDimensions,
                              that = $(this).resizable( "instance" ),
                              o = that.options,
                              cs = that.size,

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

                            start: function() {
                                var element, p, co, ch, cw, width, height,
                                    that = $( this ).resizable( "instance" ),
                                    o = that.options,
                                    el = that.element,

                          Function _makeResizable has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              _makeResizable: function() {
                                  var that = this,
                                      options = this.options,
                                      handles = options.resizable,
                                      // .ui-resizable has position: relative defined in the stylesheet

                            Function _setOption has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                _setOption: function( key, value ) {
                                    var isDraggable, isResizable,
                                        uiDialog = this.uiDialog;
                            
                                    if ( key === "dialogClass" ) {

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

                                  _createWrapper: function() {
                                      this.uiDialog = $("<div>")
                                          .addClass( "ui-dialog ui-widget ui-widget-content ui-corner-all ui-front " +
                                              this.options.dialogClass )
                                          .hide()

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

                                        _mouseStart: function(event) {
                                    
                                            var curleft, curtop, cursor,
                                                o = this.options,
                                                el = this.element;

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

                                            _respectSize: function( data ) {
                                        
                                                var o = this._vBoundaries,
                                                    a = this.axis,
                                                    ismaxw = this._isNumber(data.width) && o.maxWidth && (o.maxWidth < data.width),

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

                                                  _resetButton: function() {
                                                      if ( this.type === "input" ) {
                                                          if ( this.options.label ) {
                                                              this.element.val( this.options.label );
                                                          }

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

                                                      _createTitlebar: function() {
                                                          var uiDialogTitle;
                                                  
                                                          this.uiDialogTitlebar = $( "<div>" )
                                                              .addClass( "ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix" )

                                                    Function _makeDraggable has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                        _makeDraggable: function() {
                                                            var that = this,
                                                                options = this.options;
                                                    
                                                            function filteredUi( ui ) {

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

                                                            _size: function() {
                                                                // If the user has resized the dialog, the .ui-dialog and .ui-dialog-content
                                                                // divs will both have width and height set, so we need to reset them
                                                                var nonContentHeight, minContentHeight, maxContentHeight,
                                                                    options = this.options;

                                                          Function _mouseStop has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                              _mouseStop: function(event) {
                                                          
                                                                  this.resizing = false;
                                                                  var pr, ista, soffseth, soffsetw, s, left, top,
                                                                      o = this.options, that = this;

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

                                                                    _determineButtonType: function() {
                                                                        var ancestor, labelSelector, checked;
                                                                
                                                                        if ( this.element.is("[type=checkbox]") ) {
                                                                            this.type = "checkbox";

                                                                  Function stop has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                  Open

                                                                      stop: function( event ) {
                                                                          var that = $(this).resizable( "instance" ),
                                                                              o = that.options,
                                                                              pr = that._proportionallyResizeElements,
                                                                              ista = pr.length && (/textarea/i).test(pr[0].nodeName),

                                                                    Function _createButtons has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                    Open

                                                                        _createButtons: function() {
                                                                            var that = this,
                                                                                buttons = this.options.buttons;
                                                                    
                                                                            // if we already have a button pane, remove it

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

                                                                          _create: function() {
                                                                              this.originalCss = {
                                                                                  display: this.element[ 0 ].style.display,
                                                                                  width: this.element[ 0 ].style.width,
                                                                                  minHeight: this.element[ 0 ].style.minHeight,

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

                                                                              _createOverlay: function() {
                                                                                  if ( !this.options.modal ) {
                                                                                      return;
                                                                                  }
                                                                          
                                                                          

                                                                            Function _mouseDrag has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                                _mouseDrag: function(event) {
                                                                            
                                                                                    var data, props,
                                                                                        smp = this.originalMousePosition,
                                                                                        a = this.axis,

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

                                                                                    refresh: function() {
                                                                                        //See #8237 & #8828
                                                                                        var isDisabled = this.element.is( "input, button" ) ? this.element.is( ":disabled" ) : this.element.hasClass( "ui-button-disabled" );
                                                                                
                                                                                        if ( isDisabled !== this.options.disabled ) {

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

                                                                                        _updateVirtualBoundaries: function(forceAspectRatio) {
                                                                                            var pMinWidth, pMaxWidth, pMinHeight, pMaxHeight, b,
                                                                                                o = this.options;
                                                                                    
                                                                                            b = {

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

                                                                                            _destroy: function() {
                                                                                        
                                                                                                this._mouseDestroy();
                                                                                        
                                                                                                var wrapper,

                                                                                          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