docs/dist/responsive-lazyload.es.js
function removeLoadingClass(image, loadingClass) {
  var element = image;
  var shouldReturn = false;

  /*
   * Since there may be additional elements wrapping the image (e.g. a link),
   * we run a loop to check the image’s ancestors until we either find the
   * element with the loading class or hit the `body` element.
   */
  while (element.tagName.toLowerCase() !== 'body') {
    if (element.classList.contains(loadingClass)) {
      element.classList.remove(loadingClass);
      shouldReturn = true;
    } else {
      element = element.parentNode;
    }

    if (shouldReturn) {
      return;
    }
  }
}
function removeLoadingClass(image, loadingClass) {
  var element = image;
  var shouldReturn = false;

  /*
   * Since there may be additional elements wrapping the image (e.g. a link),
   * we run a loop to check the image’s ancestors until we either find the
   * element with the loading class or hit the `body` element.
   */
  while (element.tagName.toLowerCase() !== 'body') {
    if (element.classList.contains(loadingClass)) {
      element.classList.remove(loadingClass);
      shouldReturn = true;
    } else {
      element = element.parentNode;
    }

    if (shouldReturn) {
      return;
    }
  }
}
function removeLoadingClass ( image , loadingClass ) { var element = image ; var shouldReturn = false ; /*
   * Since there may be additional elements wrapping the image (e.g. a link),
   * we run a loop to check the image’s ancestors until we either find the
   * element with the loading class or hit the `body` element.
   */ while ( element . tagName . toLowerCase ( ) !== 'body' ) { if ( element . classList . contains ( loadingClass ) ) { element . classList . remove ( loadingClass ) ; shouldReturn = true ; } else { element = element . parentNode ; } if ( shouldReturn ) { return ; } } }
Remove the loading class from the lazyload wrapper.
@param  {Element} image        the image being loaded
@param  {String}  loadingClass the class to remove
@return {Void}
Remove the loading class from the lazyload wrapper .