angelakuo/citydogshare

View on GitHub
public/assets/jquery-ui/tooltip-db9a09787c7fc5fcd4e0f97541b2086657876cd9dc4effacd4ee7b293e82b6d2.js

Summary

Maintainability
F
1 wk
Test Coverage

File tooltip-db9a09787c7fc5fcd4e0f97541b2086657876cd9dc4effacd4ee7b293e82b6d2.js has 1428 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 _open has 57 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _open: function( event, target, content ) {
                var tooltipData, tooltip, delayedShow, a11yContent,
                    positionOption = $.extend( {}, this.options.position );
        
                if ( !content ) {

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

                  close: function( event ) {
                      var tooltip,
                          that = this,
                          target = $( event ? event.currentTarget : this.element ),
                          tooltipData = this._find( target );

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

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

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

                          open: function( event ) {
                              var that = this,
                                  target = $( event ? event.target : this.element )
                                      // we need closest here due to mouseover bubbling,
                                      // but always pointing at the same event target

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