DevInSantos/DevInSantos-events

View on GitHub
app/assets/javascripts/modules/modal.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

      There are no issues that match your filters.

      Category
      Status