vendor/videojs/video.js
function hasElClass(element, classToCheck) {
  throwIfWhitespace(classToCheck);
  if (element.classList) {
    return element.classList.contains(classToCheck);
  }
  return classRegExp(classToCheck).test(element.className);
}
function hasElClass(element, classToCheck) {
  throwIfWhitespace(classToCheck);
  if (element.classList) {
    return element.classList.contains(classToCheck);
  }
  return classRegExp(classToCheck).test(element.className);
}
function hasElClass ( element , classToCheck ) { throwIfWhitespace ( classToCheck ) ; if ( element . classList ) { return element . classList . contains ( classToCheck ) ; } return classRegExp ( classToCheck ) . test ( element . className ) ; }
Check if an element has a CSS class

@function hasElClass
@param {Element} element Element to check
@param {String} classToCheck Classname to check
Check if an element has a CSS class