js/lightbox.js
function hasClass(el, className) {
    if (!el || !className) {
      return;
    }
    return (new RegExp('(^|\\s)' + className + '(\\s|$)').test(el.className));
  }
function hasClass(el, className) {
    if (!el || !className) {
      return;
    }
    return (new RegExp('(^|\\s)' + className + '(\\s|$)').test(el.className));
  }
function hasClass ( el , className ) { if ( ! el || ! className ) { return ; } return ( new RegExp ( '(^|\\s)' + className + '(\\s|$)' ) . test ( el . className ) ) ; }
Checks if element has a specific class
@param  {Object}  el        [description]
@param  {String}  className [description]
@return {Boolean}           [description]
Checks if element has a specific class