Dogfalo/materialize

View on GitHub
js/modal.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function animateIn has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    animateIn() {
      // Set initial styles
      $.extend(this.$el[0].style, {
        display: 'block',
        opacity: 0
Severity: Minor
Found in js/modal.js - About 1 hr to fix

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

        animateOut() {
          // Animate overlay
          Vel(
            this.$overlay[0],
            { opacity: 0},
    Severity: Minor
    Found in js/modal.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status