purposeindustries/lazy-image-loader

View on GitHub

Showing 2 of 2 total issues

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

  function handleItem(item, options) {
    options = options || {};
    var pathAttr = options.pathAttribute || 'data-path';
    var hostAttr = options.hostAttribute || 'data-host';
    var host = item.getAttribute(hostAttr) || options.host;
Severity: Minor
Found in index.js - About 1 hr to fix

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

      return function init(host, options) {
        options = options || {};
        var className = options.className || '.lazy-image';
        var onlyInViewPort = !!options.onlyInViewPort;
        var items = [].slice.call(document.querySelectorAll(className));
    Severity: Minor
    Found in index.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language