DevInSantos/DevInSantos-events

View on GitHub

Showing 6 of 8 total issues

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

        applyMedia = function( fromResize ){
            var name = "clientWidth",
                docElemProp = docElem[ name ],
                currWidth = doc.compatMode === "CSS1Compat" && docElemProp || doc.body[ name ] || docElemProp,
                styleBlocks    = {},
Severity: Major
Found in app/assets/javascripts/ie/respond.js - About 2 hrs to fix

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

            translate = function( styles, href, media ){
                var qs = styles.match(  /@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi ),
                    ql = qs && qs.length || 0;
    
                //try to get CSS path
    Severity: Minor
    Found in app/assets/javascripts/ie/respond.js - About 1 hr to fix

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

        Modal.prototype.backdrop = function (callback) {
          var that    = this
          var animate = this.$element.hasClass('fade') ? 'fade' : ''
      
          if (this.isShown && this.options.backdrop) {
      Severity: Minor
      Found in app/assets/javascripts/modules/modal.js - About 1 hr to fix

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

          Modal.prototype.show = function (_relatedTarget) {
            var that = this
            var e    = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
        
            this.$element.trigger(e)
        Severity: Minor
        Found in app/assets/javascripts/modules/modal.js - About 1 hr to fix

          Consider simplifying this complex logical expression.
          Open

                              if( !thisstyle.hasquery || ( !minnull || !maxnull ) && ( minnull || currWidth >= min ) && ( maxnull || currWidth <= max ) ){
                                  if( !styleBlocks[ thisstyle.media ] ){
                                      styleBlocks[ thisstyle.media ] = [];
                                  }
                                  styleBlocks[ thisstyle.media ].push( rules[ thisstyle.rules ] );
          Severity: Major
          Found in app/assets/javascripts/ie/respond.js - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

                if( !location.hash && win.addEventListener ){
                    
                    //scroll to 1
                    window.scrollTo( 0, 1 );
                    var scrollTop = 1,
            Severity: Major
            Found in app/assets/javascripts/libs/hide_addrbar.js - About 40 mins to fix
              Severity
              Category
              Status
              Source
              Language