Dogfalo/materialize

View on GitHub
js/scrollFire.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function scrollFire has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Materialize.scrollFire = function(options) {
    var onScroll = function() {
      var windowScroll = window.pageYOffset + window.innerHeight;

      for (var i = 0 ; i < options.length; i++) {
Severity: Minor
Found in js/scrollFire.js - About 1 hr to fix

    Avoid deeply nested control flow statements.
    Open

                  if (typeof(callback) === 'function') {
                    callback.call(this, currentElement);
                  } else if (typeof(callback) === 'string') {
                    var callbackFunc = new Function(callback);
                    callbackFunc(currentElement);
    Severity: Major
    Found in js/scrollFire.js - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status