angelakuo/citydogshare

View on GitHub
public/assets/materialize/scrollFire-51d8aca762cd14871dbf39aad2bc0213e799f1aa314e75c267fdfd92cfd87e0e.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

  Materialize.scrollFire = function(options) {

    var didScroll = false;

    window.addEventListener("scroll", function() {

    Avoid deeply nested control flow statements.
    Open

                    if (value.done !== true) {
                      if (typeof(callback) === 'function') {
                        callback.call(this, currentElement);
                      } else if (typeof(callback) === 'string') {
                        var callbackFunc = new Function(callback);

      There are no issues that match your filters.

      Category
      Status